Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lists

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lists

A library of higher-order functions modeled after Haskell's Data.List module

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
decreased by-68.18%
Maintainers
1
Weekly downloads
 
Created
Source

[ l [ i [ s ] t ] s ] -- pending release

"If all you have is a hammer, everything looks like a nail"

Lists is a library of higher-order functions featuring over 50 functions for working with lists (arrays/strings) and collections (objects). The library was inspired directly from Haskell's Data.List module by the powerful people over at The University of Gasgow. You can view the original source here. You could then scroll through each function closely and see a purposefully similar correlation between the Haskell implementation and this implementation.

You'll take advantage of the endless combinations of function compositions that Lists offers you. Use the unorthodox style of passing functions to functions to functions to solve complex problems. Most of the functions featured in Lists produce new arrays, to reinforce the paradigm of stateless programming, which means "retaining no information about previous events".

Lists will feature both recursive and iterative implementations of its functions. For performance reasons, the module that you pull from node package manager will be the iterative version of Lists. ECMAScript 6 will support tail call optimization which will make the performance of carefully designed recursive functions a viable contender (in the way of performance) to their iterative counter parts. A present alternative is using continuous-passing style CPS to define recursive functions - this will be slowly implemented.

Lists is an open source project and is not meant to be paid for, ever. So now then, lets have some fun(fun(fun(fun)))

Note:

This module has not yet been relased


api(here)

Keywords

FAQs

Package last updated on 20 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc