a guest Dec 7th, 2017 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- insertAt :: a-> [a] -> Int -> [a]
- insertAt x xs n = let (ys,zs) = split xs (n-1) in ys++x:zs
RAW Paste Data