Utility function to add an element in front of a list.
Type : x -> [x] -> [x]
Usage :
cons(1, []) --> [1] cons(2,[1]) --> [2, 1]
Utility function to add an element in front of a list.
Type : x -> [x] -> [x]
Usage :
cons(1, []) --> [1] cons(2,[1]) --> [2, 1]
npm i list-cons
2
0.0.0
ISC