character subsets by ksk

open List
let rec f?(c=input_char stdin)l=c<' '&[]<map(fun s->map print_char(s@['
']))l;exists(mem c)l&f l;f(concat(map(fun s->[s;s@[c]])l));;f[[]]

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page