Sha256: 493e8c38e9ed78f2305fffc73aff0be6b6056aa5475344fd1c3e770981884f97

Contents?: true

Size: 427 Bytes

Versions: 17

Compression:

Stored size: 427 Bytes

Contents

(examples-for mapsum
  ("maps a function over a list and sums the result"
   (mapsum car '((2 3) (5 7) (11 13)))
   18)

  ("extracts an attribute and sums the result"
   (mapsum &age (list { name "a" age 10 }
                      { name "b" age  7 }
                      { name "c" age 12 }))
   29))

(examples-for mapply
  ("applies each list to the given function"
   (mapply + '((1 2 3) (4 5 6) (7 8 9)))
   (6 15 24)))

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/lisp/tests/mapsum-examples.nydp
nydp-0.5.1 lib/lisp/tests/mapsum-examples.nydp
nydp-0.5.0 lib/lisp/tests/mapsum-examples.nydp
nydp-0.4.6 lib/lisp/tests/mapsum-examples.nydp
nydp-0.4.5 lib/lisp/tests/mapsum-examples.nydp
nydp-0.4.3 lib/lisp/tests/mapsum-examples.nydp
nydp-0.4.2 lib/lisp/tests/mapsum-examples.nydp
nydp-0.4.1 lib/lisp/tests/mapsum-examples.nydp
nydp-0.4.0 lib/lisp/tests/mapsum-examples.nydp
nydp-0.3.0 lib/lisp/tests/mapsum-examples.nydp
nydp-0.2.6 lib/lisp/tests/mapsum-examples.nydp
nydp-0.2.5 lib/lisp/tests/mapsum-examples.nydp
nydp-0.2.3 lib/lisp/tests/mapsum-examples.nydp
nydp-0.2.2 lib/lisp/tests/mapsum-examples.nydp
nydp-0.2.1 lib/lisp/tests/mapsum-examples.nydp
nydp-0.2.0 lib/lisp/tests/mapsum-examples.nydp
nydp-0.1.15 lib/lisp/tests/mapsum-examples.nydp