Created
August 4, 2018 13:41
-
-
Save truthadjustr/b146a0f56ec142927873e1697be589e0 to your computer and use it in GitHub Desktop.
insert to list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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