concat-everywhere
v0.0.4
Published
Concatenative programming in JavaScript
Downloads
9
Maintainers
Readme
concat-everywhere
Concatenative programming in JS.
import * from 'concat-everywhere';
const three = concat(1, 2, plus).pop();
console.log(three);
// 3
// Works with JS functions and "fat arrow" lambdas
const negativeNine = concat(
2,
console.log,
3,
console.log,
Math.pow,
console.log,
n => ~n
);
// 2
// 2 3
// 8
console.log(negativeNine);
// -9
Etc
Released under BSD 3-Clause license, original version by Justin "Boonie Pepper" Hill.