Re: [Jprogramming] Fast substring collection

2019-07-08 Thread Raul Miller
I used to do this kind of thing all the time (in the '90s), and was disappointed how slow it was in J. I'm not going to recreate any of that code right now, but here's a simple example problem: Given a delimited string of item names (the kind that you might break into pieces with <;._1), put ', '

Re: [Jprogramming] Fast substring collection

2019-07-08 Thread Henry Rich
   x =. 5 6 ,: 1 3  NB. Two substrings as start,length    y =. 'abcdefghijklmnopqrstuvwxyz'    x (,"0@[ ;@:(<;.0) ]) y  NB. fetch & catenate substrings fghijkbcd Henry Rich On 7/8/2019 11:04 AM, R.E. Boss wrote: Can you give an example? R.E. Boss -Oorspronkelijk bericht- Van: Progr

Re: [Jprogramming] Fast substring collection

2019-07-08 Thread R.E. Boss
Can you give an example? R.E. Boss > -Oorspronkelijk bericht- > Van: Programming > Namens Henry Rich > Verzonden: zondag 7 juli 2019 20:49 > Aan: programm...@jsoftware.com > Onderwerp: [Jprogramming] Fast substring collection > > I just want to read this into the record. > > The task