Skip to content

Deydim/List

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

FP style linked list

Some functional languages implement a list data structure in a nested/recursive way.

Node1->Node2->Node3 can be represented using arrays as [Node1, [Node2, [Node3, []]]] in JS.

In list.js you can see some example methods to create and work with such list types as well as some helper functions I've borrowed to help with data transformation process.

JSFiddle here: https://jsfiddle.net/Lhvrsfoy/

About

A naive implementation of FP list data structure with nested arrays.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published