Tacit
Overview
Tacit/point-free function chains. Like chains in underscore or lo-dash, but with cleaner syntax. To compare:
Underscore:
var { return _ size value;}
Lo-dash
var { return size value;}
Tacit:
var countUnique = size;
Usage
Install:
npm install tacit
Basic usage:
var tacit = ;var _ = ; var _t = ; var countUnique = size; var size = ; // prints 3console;
If no functions are added to the chain, then the tacit function is just the identity function, i.e.:
var _t = ; var value = ; // prints 'Hello World'console;
To support arguments that aren't in the last position, either set the default position:
var _t = ; var countUnique = ; var sizes =
A value of -1 for the default position means: "insert in the last position". If a value isn't specified for the default position, -1 is assumed.
Another option is to use the special $ operator:
var $ = tacit$;var _t = ; var countUnique = ;
This overrides the default position on a function-by-function basis.