Answers for "haskell remove nth element list"

0

remove nth element from list haskell

deleteN :: Int -> [a] -> [a]
deleteN _ []     = []
deleteN i (a:as)
   | i == 0    = as
   | otherwise = a : deleteN (i-1) as
Posted by: Guest on December-08-2020

Code answers related to "haskell remove nth element list"

Browse Popular Code Answers by Language