subset?

check if given set is a subset of second set


Parameters

subset? setA :block
        setB :block

Attributes

propercheck if proper subset

Returns

  • :logical

Examples

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

Related