Mercurial > urweb
comparison jslib/urweb.js @ 586:1c969230ee7f
Reactive bool
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 01 Jan 2009 11:13:08 -0500 |
parents | 35471f067980 |
children | 102e81d975e3 |
comparison
equal
deleted
inserted
replaced
585:35471f067980 | 586:1c969230ee7f |
---|---|
40 document.body.appendChild(x); | 40 document.body.appendChild(x); |
41 s.h = cons(function() { x.innerHTML = s.v }, s.h); | 41 s.h = cons(function() { x.innerHTML = s.v }, s.h); |
42 } | 42 } |
43 | 43 |
44 function ts(x) { return x.toString() } | 44 function ts(x) { return x.toString() } |
45 function bs(b) { return (b ? "True" : "False") } | |
46 | |
45 function pf() { alert("Pattern match failure") } | 47 function pf() { alert("Pattern match failure") } |