« first day (1795 days earlier)      last day (1156 days later) » 

17:41
@Adám it's interesting that "Sharp APL 84 for pc" is actually the mainframe version bundled with a mainframe (370) emulator. I wonder if it would be possible to run it directly under Hercules?
18:07
@Fmbalbuena TIO requires (although there's a way round that too): Try it online!
without ∇
 
1 hour later…
19:16
@Adám can you teach me a oprerator that i forgot?
@Fmbalbuena Sure. Which ones did you forget?
OK.
(f@indices)array applies f to the elements of array at indices
19:20
example?
⎕← (-@2 3)20 40 60 80
@Adám 20 ¯40 ¯60 80
ok
⎕← (+@2 3)20 0J40 60 80
@Fmbalbuena 20 0J¯40 60 80
You can also give a left argument: ⎕←2(×@2 3)10 10 10 10
19:21
@Adám 10 20 20 10
And if you give it a function as right operand, that function is applied to the right argument, and the result is a Boolean mask indicating which element to apply to.
⎕←+⌿(10 10×2 10×2 10)=2(×@2 3)10 10 10 10
@Fmbalbuena
LENGTH ERROR: Mismatched left and right argument shapes
      ⎕←+⌿(10 10×2 10×2 10)=2(×@2 3)10 10 10 10
                         ∧
@Fmbalbuena You forgot the rule.
which?
seems valid to me
19:24
Every APL function takes as right argument, everything to its right.
+⌿(10 10×2 10×2 10)=2(×@2 3)10 10 10 10
+⌿(10 10×2 10×2 10)=10 20 20 10
Think about what each × takes as argument!
+⌿(10 20 20 10)=10 20 20 10
+⌿10 20 20 10=10 20 20 10
@Fmbalbuena This step is not right.
+⌿1 1 1 1
4
oh
10 10×2 10×2 10
10 10×2 20 100
19:26
@Fmbalbuena Not right.
What does the × see as left argument?
10 10×2 10×2 10
10 10×4 100?
exactly
40 1000
19:28
And then = will fail.
⋄(⍴40 1000)≢⍴10 20 20 10
@Fmbalbuena 1
thanks
@Adám CMC: print Hello, World! without newline
19:53
@Fmbalbuena Can I teach you another operator that could have made this easier to write?
over time!
Bba dum tss

« first day (1795 days earlier)      last day (1156 days later) »