singleton_of_list
Lib.singleton_of_list : 'a list -> 'a
Turns a single-element list into a singleton.
singleton_of_list [x] returns x.
Failure
Fails if applied to a list that is not of length 1.
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
singleton_of_listLib.singleton_of_list : 'a list -> 'a
Turns a single-element list into a singleton.
singleton_of_list [x] returns x.
Fails if applied to a list that is not of length 1.