Sha256: 71ba5d1dc88a74647c461e74d9836d4fcfdc70509ae81ad822e2c0e5ccbd7fa0

Contents?: true

Size: 666 Bytes

Versions: 7

Compression:

Stored size: 666 Bytes

Contents

(examples-for ⋂
  ("returns a single arg"
   (⋂ '(a b c))
   (a b c))

  ("returns a single nil arg"
   (⋂ nil)
   nil)

  ("returns intersection of two args"
   (⋂ '(a b c) '(a b d))
   (a b))

  ("returns intersection of list and nil"
   (⋂ '(a b c) nil)
   nil)

  ("returns intersection of nil and list"
   (⋂ nil '(a b c))
   nil)

  ("returns intersection of three args"
   (⋂ '(a b c d e) '(a b c d f) '(z b c d g))
   (b c d))

  ("returns intersection of list, nil, and another list"
   (⋂ '(a b c d e) nil '(z b c d g))
   nil)

  ("returns intersection of four args"
   (⋂ '(a b c d e) '(a b c d f) '(z b d c g) '(z y g c d))
   (c d)))

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/lisp/tests/set-intersection-examples.nydp
nydp-0.5.1 lib/lisp/tests/set-intersection-examples.nydp
nydp-0.5.0 lib/lisp/tests/set-intersection-examples.nydp
nydp-0.4.6 lib/lisp/tests/set-intersection-examples.nydp
nydp-0.4.5 lib/lisp/tests/set-intersection-examples.nydp
nydp-0.4.3 lib/lisp/tests/set-intersection-examples.nydp
nydp-0.4.2 lib/lisp/tests/set-intersection-examples.nydp