« first day (61 days earlier)      last day (1474 days later) » 

12:45 PM
@AlexanderBelopolsky can an anonymous function call itself recursively in k7?
 
1:05 PM
@chrispsn I think it’s nyi at the moment. Why don’t you ask on the googlegroup?
 
1:17 PM
@AlexanderBelopolsky Done
 
It looks like

r:{[f;a;x]$[x~*a;a 1;f[0][x;r[f;a]f[1]x]]}

in the log shows how to call f recursively.

r[{..}] ..

not sure how to make it work though.
 
@AlexanderBelopolsky Right. I had assumed it was showing how to call a named function recursively
calling a named function recursively seems to work k7contrib.gitlab.io/docs/#func
 
ngn
1:46 PM
@chrispsn there's the y combinator :)
 
@ngn never got my head around that one...
 
ngn
2:03 PM
Y[f] makes f pass itself as its own first arg
 
@ngn how good are implicit args! Reading that makes it much more understandable
 
 
6 hours later…
8:03 PM
wasn't there "o" in some version of k for a self call?
 
8:47 PM
@ktye oK has that, and they used to have .z.f in k7
 
@chrispsn i use o for self call with lexical scope and ∇ for tail call: github.com/ktye/i/blob/master/e.go#L96
 
 
1 hour later…
9:58 PM
@ktye why ∇? does that symbol have that meaning in general use?
 
 
2 hours later…
11:29 PM
.z.s you mean ? .z.f is file argument in k7 (and k4)
turns out, .z.s is now 'seconds' in k7..
 
11:47 PM
@juanez it definitely used to be .z.f in k7. See an old iteration of \h here: reddit.com/r/apljk/comments/b1l5hi/comment/…
 
gotcha
 
11:59 PM
hmm, are the google-group messageboard posts being screened before publishing?
 

« first day (61 days earlier)      last day (1474 days later) »