This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assert = require('assert'); | |
const cons = (a, list) => _cons => _cons(a, list); | |
const car = list => list(head => head); | |
const cdr = list => list((_, tail) => tail); | |
const nil = () => null; | |
const is_nil = list => car(list) === nil(); | |
const length = list => | |
is_nil(list) ? 0 : 1 + length(cdr(list)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MARK = { | |
symbol: { | |
name: '__mark__', | |
type: 'condition', | |
}, | |
add(fn) { | |
let { name, type } = this.symbol; | |
let addon = { [name]: type }; | |
return Object.assign((...args) => fn(...args), addon); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<css-doodle> | |
:doodle { | |
@grid: 20x1 / 60vmin; | |
overflow: hidden; | |
} | |
:container { | |
transform: scale(25); | |
filter: @svg-filter(<svg> | |
<filter> | |
<feTurbulence baseFrequency="@r(.016, .056, .001)" seed="@r(100)" numOctaves="@r(8, 15)" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<main></main> |
OlderNewer