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.P17

Description

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

Synopsis

Documentation

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

Split a list into two parts; the length of the first part is given.

Examples

>>> split "abcdefghik" 3
("abc","defghik")