Sha256: bee686103d7cfa79d419e26135bf532e9a78b51e40e403d3b227e43401eeea51

Contents?: true

Size: 355 Bytes

Versions: 12

Compression:

Stored size: 355 Bytes

Contents

(examples-for all?
  ("true when all items are numeric"
   (all? num? '(1 2 3 4))
   t)

  ("false when all items are not numeric"
   (all? num? '(1 2 x 4))
   nil)

  ("true for an atom"
   (and (all? string? "really, all") t)
   t)

  ("false for nil"
   (all? x1 nil)
   nil)

  ("false when any item is nil"
   (and (all? x1 '(1 2 nil 4)) t)
   nil))

Version data entries

12 entries across 12 versions & 1 rubygems

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