Sha256: 81ee1d28133e39250febcfd40391018cfdbca6f6f12383777c10e7bf027cc20a

Contents?: true

Size: 530 Bytes

Versions: 12

Compression:

Stored size: 530 Bytes

Contents

(examples-for any?
  ("true when any item is non-nil"
   (and (any? num? '(1 nil nil 4)) t)
   t)

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

  ("false for an atom"
   (any? num? "really, all")
   nil)

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

  ("false when all items are nil"
   (any? sym? '(nil nil nil nil))
   nil)

  ("true when at least one item is nil when looking for nil"
   (any? no '(1 2 nil 4))
   t)

  ("false when no item is nil when looking for nil"
   (any? no '(1 2 3 4))
   nil))

Version data entries

12 entries across 12 versions & 1 rubygems

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