daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. insertAt :: a-> [a] -> Int -> [a]
  2. insertAt x xs n = let (ys,zs) = split xs (n-1) in ys++x:zs
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top