list-cons

0.0.0 • Public • Published

Utility function to add an element in front of a list.

Type : x -> [x] -> [x]

Usage :

cons(1, []) --> [1] cons(2,[1]) --> [2, 1]

Readme

Keywords

Package Sidebar

Install

npm i list-cons

Weekly Downloads

2

Version

0.0.0

License

ISC

Last publish

Collaborators

  • psteeve