rob=: {: ,~ ({.[:`'') ,@,. }: g=: %:`*:`+: g +--+--+--+ |%:|*:|+:| +--+--+--+ rob g +--+--+--+--+--+ |[:|%:|[:|*:|+:| +--+--+--+--+--+ (rob g)`:6]5 10
"rob" transforms your gerund into a suitable train. You can then apply it with `:6. Cheers, Louis > On 24 Sep 2017, at 20:35, Rob Moore <robmoore...@gmail.com> wrote: > > Thanks for replying Raul, your solutions weren't what I was looking for, > but I understand the confusion from my first explanation. > > Jose your first solution worked perfectly, thanks very much! The other two > solutions you gave caused syntax errors for me, must be different versions, > I'm on 604. > > What did you mean by compliant and non-compliant in your comments? > > Thanks, > > Rob > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm