Sha256: 9aad72143776334d202b744440951f20f1bbcf60bcc3d85ffbc3cd1367750d27

Contents?: true

Size: 595 Bytes

Versions: 12

Compression:

Stored size: 595 Bytes

Contents

(def chicken-korma (a b c d e)
  (list a b c d e))

(examples-for curry
  ("zero-params assumes nil initial parameter"
   (let ck0 (curry chicken-korma)
     (ck0 1 2 3 4 5))
   (1 2 3 4 5))

  ("one param"
   (let ck0 (curry chicken-korma 'x)
     (ck0 1 2 3 4))
   (x 1 2 3 4))

  ("nestable"
   (let ck0 (curry chicken-korma 'x)
     ((curry ck0 'y) 1 2 3))
   (x y 1 2 3))

  ("two params"
   (let ck0 (curry chicken-korma 'x 'y)
     (ck0 1 2 3))
   (x y 1 2 3))

  ("three params ignores second and third params"
   (let ck0 (curry chicken-korma 'x 'y 'z)
     (ck0 1 2))
   (x y z 1 2)))

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/lisp/tests/curry-tests.nydp
nydp-0.5.1 lib/lisp/tests/curry-tests.nydp
nydp-0.5.0 lib/lisp/tests/curry-tests.nydp
nydp-0.4.6 lib/lisp/tests/curry-tests.nydp
nydp-0.4.5 lib/lisp/tests/curry-tests.nydp
nydp-0.4.3 lib/lisp/tests/curry-tests.nydp
nydp-0.4.2 lib/lisp/tests/curry-tests.nydp
nydp-0.4.1 lib/lisp/tests/curry-tests.nydp
nydp-0.4.0 lib/lisp/tests/curry-tests.nydp
nydp-0.3.0 lib/lisp/tests/curry-tests.nydp
nydp-0.2.6 lib/lisp/tests/curry-tests.nydp
nydp-0.2.5 lib/lisp/tests/curry-tests.nydp