Instant is
off
|
Search plugin
|
Manual
|
haskell.org
inits
+base
Packages
base
inits
:: [a] -> [[a]]
base
Data.List
The
inits
function returns all initial segments of the argument, shortest first. For example, > inits "abc" == ["","a","ab","abc"]
©
Neil Mitchell
2004-2012, version 4.2.11