ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Problems.P20

Description

Part of Ninety-Nine Haskell Problems. Some solutions are in Solutions.P20.

Synopsis

Documentation

removeAt :: Int -> [a] -> (a, [a]) Source #

Remove the kth element from a list. Return the element removed and the residue list.

Examples

>>> removeAt 2 "abcd"
('b',"acd")