List Module
Functions and values
Function or value |
Description
|
Full Usage:
chooseState f state l
Parameters:
'a -> 'b -> 'a * 'c option
state : 'a
l : 'b list
Returns: 'c list
|
|
Full Usage:
cutOffLast arg1
Parameters:
'a list
Returns: 'a list
|
Removes the last element of a list
|
Full Usage:
foldWithLast f g initialState items
Parameters:
'state -> 'item -> 'state
g : 'state -> 'item -> 'state
initialState : 'state
items : 'item list
Returns: 'state
|
Similar to a List.fold but pass in another fold function for when the last item is reached.
|
Full Usage:
isNotEmpty l
Parameters:
'a list
Returns: bool
|
|
Full Usage:
mapWithLast f g xs
Parameters:
'a -> 'b
g : 'a -> 'b
xs : 'a list
Returns: 'b list
|
|
Full Usage:
moreThanOne
Returns: 'a list -> bool
|
|
Full Usage:
partitionWhile f xs
Parameters:
int -> 'a -> bool
xs : 'a list
Returns: 'a list * 'a list
|
|