powerset

return the powerset of given set


Parameters

powerset set :literal :block

Returns

  • :block
  • or  :nothing

Examples

copy
powerset [1 2 3] ; [[] [1] [2] [1 3] [3] [1 2] [2 3] [1 2 3]]

Related