butlast
Lib.butlast : 'a list -> 'a list
Computes the sub-list of a list consisting of all but the last element.
butlast [x1,...,xn] returns [x1,...,x(n-1)].
Failure
Fails if the list is empty.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help