11 lines
278 B
Text
11 lines
278 B
Text
1) we add to the lambdatalk's dictionary the Javascript primitive "dec2bin"
|
|
{script
|
|
LAMBDATALK.DICT["dec2bin"] = function() {
|
|
return Number( arguments[0].trim() ).toString(2)
|
|
};
|
|
}
|
|
|
|
2) we use it in the wiki page:
|
|
'{S.map dec2bin 5 50 9000}
|
|
-> 101 110010 10001100101000
|
|
}
|