« first day (670 days earlier)      last day (1985 days later) » 

5:29 AM
Given a square matrix y, I am trying to golf down my J solution which returns 1 for a valid index list and 0 otherwise. Negative and too hight are both illegal for the purposes of this verb: (i.#y) */@e.~ ]
 
5:42 AM
@Jonah -:(#y)&|
 
 
7 hours later…
12:29 PM
@ngn Doesn't seem to work on TIO, am I doing something wrong?
 
@J.Sallé No, it is just the TIO wrapper that doesn't handle statements with no result.
 
Ah, I see
 
 
I'll run it on my machine then and see if I can make a gif of the result
@Adám or we can do that and save me the hassle of making a gif eh hahahahahahaah
 
1:00 PM
@J.Sallé For timed tasks, I've used a drop-in for ⎕← which prints the time.
 
@ngn the only thing I don't get is how is the function outputting 7 lines if it's only called for 6 arguments (¨1↓¨,\?6⍴2 creates a 6 element vector)
@Adám that'd be nice to have
 
ngn
@J.Sallé on the sixth iteration the guard condition is satisfied and the part after : gets evaluated - there's another ⎕← there
 
@ngn yeah I literally just figured this out. Took me a while to notice there was a guard there
 
@J.Sallé How is this?
 
@Adám perfect!
 
1:13 PM
@Bubbler very nice, ty
 
1:34 PM
Finished editing my answer. Thanks everyone who helped :D
 
@J.Sallé Your first TIO link appears broken.
@J.Sallé Works now.
 
@Adám fixed.
 
@J.Sallé Impressive explanation!
 
@Adám Thanks hahahah I try my best.
 
ngn
@J.Sallé yeah, sorry for ruining your first one :)
 
1:41 PM
Hahahahah it's okay though, I had to learn what some of the function was doing so I'd have to re-explain it to myself anyways
Also I enjoy writing :p
 
1:59 PM
@J.Sallé Hello, I'm a new guy at Dyalog making stuff for new users
 
@RichardPark oh, cool! Welcome to PPCG and the Orchard :D
 
@J.Sallé I don't know what has been discussed, but apparently you'd like to help turn tutorials into jupyter notebooks or something maybe?
 
@RichardPark Yeah, I talked to Adám about that a while ago. I think I'll be able to get to it in early December (my uni's semester ends on Dec 7th)
 
I am also working on a general tutorials github, and interactive tutorial workspaces
 
2:25 PM
@RichardPark right off the bat I can suggest a link to this chat's APL lessons. Not sure if it's something you'd be looking to add into that repository, but they're certainly very useful and informative.
 
Yep very much - to start with everything's getting thrown in and then we're gonna filter it into useful bits + references to original material for further explanations
 
Ah, I see. I'd be glad to help if you need it :)
 

« first day (670 days earlier)      last day (1985 days later) »