Compose unique array

Allow a unique array of length `num` to be created from a function `fn`. There is likely a much better way to handle the RangeError test (i.e. imagine someone trying to select 27 letters from the alphabet...), but this naiive solution seemed to work for now.