concat-everywhere

0.0.4 • Public • Published

discord badge

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.

Sources on GitHub

Package Sidebar

Install

npm i concat-everywhere

Weekly Downloads

2

Version

0.0.4

License

BSD-3-Clause

Unpacked Size

4.29 kB

Total Files

6

Last publish

Collaborators

  • booniepepper