Re: [Jprogramming] k's for each, for each left, for each right in j

2014-02-07 Thread Pascal Jasmin
A bit of an explanation to the answer     ":"0 i.4 0 1 2 3 converts numbers to text representation.  'm'(,":)"0  i.4 or  'm' ,"0 1 ": "0  i.4 will provide the same answer Raul gave. - Original Message - From: Raul Miller To: Programming forum Cc: Sent: Friday, February 7, 2014

Re: [Jprogramming] k's for each, for each left, for each right in j

2014-02-07 Thread Raul Miller
' would be either "0 (or equivalently "+) or &.> f'x would be either f"0 x (or equivalently f"+ x) for flat x or f&.> x (or, equivalently f each x) for running f inside boxes of x And I think you want 'm'&,@":"0 i.4 though there are other ways of accomplishing that. J is not exactly equivalent to

Re: [Jprogramming] k's for each, for each left, for each right in j

2014-02-07 Thread Christopher A. Simon
Sorry about lack of explanation, ' is for each. f'x is function f applied to each value of x, !4 in k is the same as i.4 in j monadic $ converts or casts to type char and , is append. ("m",)'$!4, could also be {[x]"m",x}'$!4 results in, ("m0" "m1" "m2" "m3") What I'm having trouble tran

Re: [Jprogramming] k's for each, for each left, for each right in j

2014-02-07 Thread Raul Miller
I do not know exactly what ' \: and /: do in K - if I recall correctly, these are somewhat like rank specifications ("0) ("1 0) and ("0 1) except maybe use _ in place of 1 depending on what you want to do, and somewhat like the use of each (&.>) and possibly boxing either the left or right argument

[Jprogramming] k's for each, for each left, for each right in j

2014-02-07 Thread Christopher A. Simon
My apologies if this is not where newbies email with questions. I've become somewhat comfortable with k, in particular ' \: and /: But I haven't exactly found how to do similar operations j. I'm a little lost with, find the equivalent to, ("m",)'$!4 Any suggestions for transitioning from k to