ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: splitAt
Type: Int -> [a] -> ([a],[a])
Description:
Related: break
Keywords: split

Example 1

Input: splitAt 5 [1,2,3,4,5,6,7,8,9,10]

Output: ([1,2,3,4,5],[6,7,8,9,10])