Is it possible to create a function that will create a set with a list entry.
I just can't think of anything without using recursion.
I can use higher order functions like fold, filter, map, zip. I just can't have recursion in my function.
Obviously, I cannot use nub.
I hit my head trying to figure out how to get rid of duplicates without recursion or any type of loop (at least I don't think we can use loops, ask).
Matt source
share