Skip to content

Instantly share code, notes, and snippets.

@fragamus
Created August 22, 2018 03:05
Show Gist options
  • Save fragamus/0739f346cb80f04af381e86a5e39a768 to your computer and use it in GitHub Desktop.
Save fragamus/0739f346cb80f04af381e86a5e39a768 to your computer and use it in GitHub Desktop.
need help with pedagogy
-- I want to make this code nice and crisp for teaching purposes
list_of_lists_of_tack_on_functions = (fmap (\x->(++[x]))) <$>
(["0","1","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"]!!) <$>
(\x->(read [x])::Int) <$>
"4742836"
foldl (\list_of_names list_of_tack_on_functions -> list_of_tack_on_functions <*> list_of_names)
[""]
list_of_lists_of_tack_on_functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment