4 ms·
One thing that really helped me in the beginning was to pronounce K programs properly, i.e. know what the operators are called and read programs to myself. Inci
by nils-m-holm 11y ago
One thing that really helped me in the beginning was to pronounce K programs properly, i.e. know what the operators are called and read programs to myself. Incidentally that also was the way I approached math in the beginning.
For example, the column formatter from http://t3x.org/klong/klong-intro.txt.html http://t3x.org/klong/klong-intro.txt.html:
(-|/{#$x}'x)$x
It is pronounced (Negate Max-Over (Size [of] Format [of] x)-Each x) Format2 x
Of course, doing this will not lead to instant enlightenment, but it really helped me understand K.
The example from Wikipedia is a bit more challenging. What also complicates things here is that K overloads operators, so it may not be obvious, for instance, that ! means Modulo and not Rotate in that program. That's why I started developing Klong in the first place.