DylanMeeus/hasgo

Subsequence()

Opened this issue · 0 comments

The subsequences function returns the list of all subsequences of the argument.

[a] -> [[a]] 
subsequences "abc"
["","a","b","ab","c","ac","bc","abc"]