« first day (1113 days earlier)      last day (422 days later) » 

09:30
wait ... does k allow _ in variable names?
if not then the syntax highlighting of dzaima.github.io/paste#0S7Qy4UqMN1QwUjBWMFEwVTBTMAcA#k is wrong
@dzaima ^
09:44
@PyGamer0 the paste syntax highlighting shouldn't be taken as anything remotely correct; that said, that is definitely wrong, and I'll fix it
 
2 hours later…
11:26
@PyGamer0 k3 uses _ in reserved words, but new variables cannot use _
 
1 hour later…
12:27
@PyGamer0 somewhat confusingly q allows _ in identifiers, but k4 does not
what is q? the languge used by kdb+?
13:09
q is the query language for kdb
it's a more wordy version of k effectively
 
1 hour later…
14:26
> x 0:y write lines
which one is the file name?
and does it create the file if it is not present?
oh ok so x is the filename
and it creates it automatically
15:08
in The APL Orchard, 1 min ago, by PyGamer0
k solution to the basic problem: {(!x)*/:!x}
can i convert ^ to tacit?
(*/:).!'2# there might be something shorter
you could use */:/ instead of (*/:).
@copy what does the . between (*/:) and !' do?
apply, but @coltim's fold works too
thanks
15:19
&=: can sub in for !'2#
15:48
@coltim how does that work?
@PyGamer0 it's quite golfy... =intAtom returns an identity matrix of that size; &matrix returns the "indices" of the 1's in that matrix
it's a way to get e.g. (0 1 2 3 4;0 1 2 3 4) from an input of 5
oh makes sense
+&=: are the coordinates of 1s in the identity matrix...

« first day (1113 days earlier)      last day (422 days later) »