UNPKG

cream-and-sugar

Version:

A deliciously functional syntax for JavaScript with native support for JSX

9 lines (7 loc) 223 B
import { compile, nodes } from '../utils'; /* * Turn the cons operation into a function call. */ compile(nodes.BackConsNode, function () { return `${this.base.compile(true)}.concat([${this.toAdd.compile(true)}])`; });