@Sherlock9 The difference between / and ⌿ and between \ and ⍀ and between ⍺,⍵ and ⍺⍪⍵ is that the ones without a - work along the last axis (for a matrix, that's horizontally ) while the ones with a - work along the first axis (for a matrix, that's vertically.
Ok. I love #regex. I love it partly because of the puzzle it presents to my brain wham I use them (but never in code). Well, if you like puzzles and funny symbols, you might like #APL. I’ve been learning @dyalogapl with http://www.dyalogaplcompetition.com and I love it. Very fun and nerdy!
@Adám I'd have expected ⎕R to be a regular function which just takes a single array with 3 boxed strings, but that seems like a much nicer way of doing it so I can see why it's a good idea to have
@Sherlock9 A dfn (indicated by curly braces) must return an array. But if the rightmost token is a function (e.g. ⊢) then the result of the expression is a function (e.g. a train). That can never be right.
Do you have a lesson on ≡ and ≢, because I got really confused when you were using them earlier along with ⍴, as I only knew them from their dyadic forms
I write a .dyalog file with this on top: #!/bin/bash (echo ∇M;tail -n+3 $0;echo -e '∇\nM\n⎕off')|dyalog -script;exit $? ⎕io←0⋄⎕pw←32767⋄'display'⎕cy'dfns'⋄d←display
I've configured vim to fill it in automatically
then, I write some APL code and I press enter, which is mapped to executing the current file with the dyalog interpreter
@H.PWiz Brian (Tools Group manager) got an amazing idea for this summer's project: A really useful part of the lessons was the ability for students to use the chat bot for experiments and variations on what I (and others) wrote. We should publish as Jypiter Notebooks for the same kind of effect.
A celebration of the many faces of APL
Given a string among those in column 1 or column 2 of the below table, return the string's neighbor to its right. In other words, if given a string in column 1 then return column 2's string on that row, and if given a string in column 2 then return column 3...