superset?

check if given set is a superset of second set


Parameters

superset? setA :block
          setB :block

Attributes

propercheck if proper superset

Returns

  • :logical

Examples

copy
superset? [1 2 3 4] [1 3] ; => true superset?.proper [1 2 3 4] [1 3] ; => true superset? [3 5 6] [1 3] ; => false superset? [1 3] [1 3] ; => true superset?.proper [1 3] [1 3] ; => false

Related