Sha256: d8ff0102e70c2fb69a4598ca01b568f0f0e56ec92c797689087560d38ab9ac75

Contents?: true

Size: 398 Bytes

Versions: 9

Compression:

Stored size: 398 Bytes

Contents

(examples-for zip
  ("joins two lists"
   (zip '(a b c) '(1 2 3))
   ((a 1) (b 2) (c 3)))

  ("joins more lists"
   (zip '(a b) '(1 2) '(p q) '(41 42 43) '(x y zip))
   ((a 1 p 41 x) (b 2 q 42 y)))

  ("resulting list is as long as first list"
   (zip '(a b) '(1 2 3 4 5 6) nil)
   ((a 1 nil) (b 2 nil)))

  ("resulting list is nil if first list is nil"
   (zip nil '(1 2 3 4 5) '(p q r))
   nil))

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/lisp/tests/zip-examples.nydp
nydp-0.5.1 lib/lisp/tests/zip-examples.nydp
nydp-0.5.0 lib/lisp/tests/zip-examples.nydp
nydp-0.4.6 lib/lisp/tests/zip-examples.nydp
nydp-0.4.5 lib/lisp/tests/zip-examples.nydp
nydp-0.4.3 lib/lisp/tests/zip-examples.nydp
nydp-0.4.2 lib/lisp/tests/zip-examples.nydp
nydp-0.4.1 lib/lisp/tests/zip-examples.nydp
nydp-0.4.0 lib/lisp/tests/zip-examples.nydp