3 ms·
I've looked at some of the ascii APL relatives, and my impression was that they are probably great for working with numbers, but seem like they'd be bad for wor
by 35bge57dtjku 10y ago
I've looked at some of the ascii APL relatives, and my impression was that they are probably great for working with numbers, but seem like they'd be bad for working with text and other things. Am I missing something here?
- RodgerTheGreat 10y agoK relaxes the traditional APL constraints on "rectangular data", which makes it comparatively quite good at dealing with text manipulation. I frequently use K for working with text and it works nicely. Anything you can represent as a list structure can have all the traditional APL-ish tools brought to bear on it. As for "other things", here are a few K sketches I've written recently: - generate random island shorelines: http://johnearnest.github.io/ok/ike/ike.html?gist=629a86c2577401b385abb3a72beb108c http://johnearnest.github.io/ok/ike/ike.html?gist=629a86c257... - animated holiday card: http://johnearnest.github.io/ok/ike/ike.html?gist=e5fdbb8724a0d3a4c69dd08d335a6feb http://johnearnest.github.io/ok/ike/ike.html?gist=e5fdbb8724... - an implementation of the arcade game "Snake": http://johnearnest.github.io/ok/ike/ike.html?gist=ead275c52940fd601763df2dbf6c01cf http://johnearnest.github.io/ok/ike/ike.html?gist=ead275c529... And that's just me! There are many interesting examples and essays here: http://www.nsl.com http://www.nsl.com