JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q30116F
  • License MIT

Pure Functional Methods

Package Exports

  • punctional

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (punctional) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Punctional

Purely Functional

This is mostly for me to get really familiar with all the little utility methods in the real functional libraries like Ramda.

I will try and write the niave implementations as i go without looking at others implementations. Maybe one day latter i will have a peek at how others do all this.

"If you can't have fun then there is little reason to do it" - this should be fun.

Functions

  • identity
  • constant
  • map
  • pipe
  • compose
  • filter
  • merge

Ideas for next functions

  • flatten
  • reduce
  • pop
  • push
  • shift
  • unshift
  • reverse
  • sort
  • trampoline
  • unique (required some sort of deep equality (cyclic issues?))