splitAt: Split a list into two separate lists wrapped in a tuple. The...

View source: R/Data.List.r

splitAtR Documentation

Split a list into two separate lists wrapped in a tuple. The first list will be until inclusive the provided index, the second list the rest.

Description

splitAt :: Int -> [a] -> ([a], [a])

Usage

splitAt(idx, xs)

Arguments

idx

index

xs

list


schnecki/rhaskell documentation built on Oct. 30, 2022, 10:23 a.m.