SYNTAX LIBRARY
# start project
npm init -y
# get syntax library
npm install bendscript/*{*/
import { type, recursive } from 'bendscript';
/*}*/
// a binary tree
type.loop(`MyTree`)
.branch(`Node`, [
'val',
recursive('left'),
recursive('right'),
])
.branch(`Leaf`, [])Last updated