1.0.0 • Published 2 years ago

@amylas/lib.std.api v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Amylas Std library

Constant

const context = new AmylasContext();
const {constant} = new AmylasStdLib(context);

// A constant is added to the context
const myConstant = constant(42);

Variable

const context = new AmylasContext();
const {variable} = new AmylasStdLib(context);

// A variable is added to the context 
const myVariable = variable();  

Pipe

const context = new AmylasContext();
const {constant, variable, pipe} = new AmylasStdLib(context);

const myConstant = constant(42);
const myVariable = variable();

// the pipeVariable is equal to the myVariable value
const pipeVariable = pipe(myVariable);   

// the pipeArray is equals to an array containing the myConstant & myVariable values
const pipeArray = pipe([myConstant, myVariable]); 
1.0.0

2 years ago