Skip to content

Instantly share code, notes, and snippets.

@truthadjustr
Created August 4, 2018 13:41
Show Gist options
  • Save truthadjustr/b146a0f56ec142927873e1697be589e0 to your computer and use it in GitHub Desktop.
Save truthadjustr/b146a0f56ec142927873e1697be589e0 to your computer and use it in GitHub Desktop.
insert to list
# insert 69 into list a
a = [1..10]
a' = let (x1,x2) = splitAt 2 a in x1 ++ [69] ++ x2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment