Proposal: A smoosh function where the number of o’s tells how deep to flatten.
smoosh([1,[2,[3,[4]]]]) => [1,2,[3,[4]]]
smooosh([1,[2,[3,[4]]]]) => [1,2,3,[4]]
smoooosh([1,[2,[3,[4]]]]) => [1,2,3,4]
3/15/2018, 5:57:30 PM
Favs: 355
Retweets: 79
link