Set->list

(set->list set) -> list

Converts a set to a list.

It is important to remember that the output used for sets is not allowed as input at the command line. The following example shows incorrect, followed by correct, usage.

Example:

>> (set->list [set "a" "b" "c"])
Error: vm: symbol not bound [set
DS: [ ]
RS: [ pp:9C3FC8 ip:9C3FDC () pp:9CBC00 0 pp:9CBC00 ip:9CBDA4 (#2( () #f )) [closure repl/A42F30] 0 pp:9CE800 ip:9CEC74 (#2( [program AB2ED8] #f ) ...) pp:AB2ED8 0 ]
Trace: (<program>)
      (repl)
      (<program>)
>> (set->list (set "a" "b" "c"))
:: ("a" "b" "c")