5 ms·
But it is also a excellent concatenative (left-to-right) language with brilliant procedure definition mechanism. Here as example, an oneliner to draw ascii chr
by pgtan 7y ago
But it is also a excellent concatenative (left-to-right) language with brilliant procedure definition mechanism. Here as example, an oneliner to draw ascii christmas tree, we made with the kid last year:
? tanne.print tanne.output tanne.shift tanne.split 19 3 3
- taeric 7y agoWhat are you using to execute this? The Python module?
- pgtan 7y agoBerkeley Logo (brand new in version 6.1). I have compiled two versions, with and without wx. The file with the procedures is on github: https://github.com/pgtan/puzzles/blob/master/baum1.lg https://github.com/pgtan/puzzles/blob/master/baum1.lg https://github.com/jrincayc/ucblogo-code https://github.com/jrincayc/ucblogo-code
- lonelappde 7y agoIt's a bit silly to hide the work in a method call and call it a "one-liner".