Hacker News new | ask | show | jobs
by pgtan 2342 days 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

2 comments

It's a bit silly to hide the work in a method call and call it a "one-liner".
What are you using to execute this? The Python module?
Berkeley 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/jrincayc/ucblogo-code