3 ms·
When reading APL for the first time, how does one determine what the characters mean? E.g, the first example is (+⌿÷≢) x I can look up the '+' '⌿' '÷' characte
by sxp 8y ago
When reading APL for the first time, how does one determine what the characters mean? E.g, the first example is
(+⌿÷≢) x
I can look up the '+' '⌿' '÷' characters at https://en.wikipedia.org/wiki/APL_syntax_and_symbols https://en.wikipedia.org/wiki/APL_syntax_and_symbols but I can't find the "≢)" characters which appear to be the '≢ ' and ')' characters when I copy and paste. However, I see it as '≡' '/)' when rendered. Is that broken Unicode rendering of the slash? I'm guessing this function means something like (divide (reduce sum array) (count array)) but I can't search for that triple equal sign on the Wikipedia page.
- agumonkey 8y agoAfter reading a few tiny intros about it, the core of APL is not that hard, that said, it would be hard to suffer dialects and more idiosyncrasies with single symbol heavy languages like that.
- ratboy666 8y agoFrom GNU APL -- )help ≢ monadic function: Z ← ≢ B (Tally) Returns the number of elements in the first dimension of B. dyadic function: Z ← A ≢ B (Not match) Returns 1 if A has not the same shape and ravel as B. But, this is a dyalog expression (which is not an ISO standard APL). Still, the symbol meaning is pretty much the same.
- untangle 8y ago>how does one determine what the characters mean? Download (free) Dyalog APL. Mouse-over any character in the editor and a mini-man page pops up. Or use this cheat sheet: http://docs.dyalog.com/16.0/ReferenceCard.pdf http://docs.dyalog.com/16.0/ReferenceCard.pdf