code.kjonigsen.net - spiceJS - Documentation and overview
Available functions
All functions are contained in a namespace called spiceJS. The following functions are available:
-
typesafe
Enforce typesafety on functions and classes. -
reparam
Allow dynamic reparameterization on functions based on parameter data-types. Intended for use with function composition and currying. -
curry
Creates a curried version of the supplied function. -
pipe
Constructs and optionally processes a function pipe. -
flip
Flips parameter-order for two-parameter functions. Useful with function composition. -
fun
Provides a more terse syntax for javascript lambdas. -
List-operators
A set of standard list-operators have been provided, which all supports currying and function composition.
Examples
No explicit sample page has been created yet, but you can check out the test-page and inspect the code there.
All content and services provided by Jostein Kjønigsen.