Sha256: da4416027c152784d0d5d71b8a339bc74a9e76a37122a3129622bc636400e246
Contents?: true
Size: 358 Bytes
Versions: 15
Compression:
Stored size: 358 Bytes
Contents
var linda = new Linda(); var ts = new linda.TupleSpace("calc"); var calc = function(){ ts.take(["calc_request"], function(tuple){ var query = tuple[1]; var result = eval(query); $("#log").prepend( $("<p>").text(query+" = "+result).prepend("calc: ") ); ts.write(["calc_result", result]); calc(); }); }; linda.io.on("connect", calc);
Version data entries
15 entries across 15 versions & 1 rubygems