Sha256: ad828b25634eb390b85a843d4d4f43c60b4660c58c1fe5853be8b50db1a9b3c8

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 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))

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nydp-0.1.14 lib/lisp/tests/mapsum-examples.nydp
nydp-0.1.13.2 lib/lisp/tests/mapsum-examples.nydp
nydp-0.1.13.1 lib/lisp/tests/mapsum-examples.nydp
nydp-0.1.13 lib/lisp/tests/mapsum-examples.nydp
nydp-0.1.12 lib/lisp/tests/mapsum-examples.nydp
nydp-0.1.11 lib/lisp/tests/mapsum-examples.nydp