}.,'-'  ,"1 > ,.'a';'bc';'def'


2007/6/14, Henry Rich <[EMAIL PROTECTED]>:

I often have boxed data like

'a';'bc';'def'

that I want to run together with delimiters, for example

a-bc-def

I admit this is not such a challenge; my best solution is

}:@;@:(,&'-'&.>) 'a';'bc';'def'


But I don't like the way it looks; especially I don't like
that }: is really the obverse of (,&'-') but that fact does not
appear (and I don't want to add yet more code by replacing }:
with ,&'-'^:_1 ).

We have a function that runs boxes together: ;:^:_1 .  Why
not let it take a Fit that gives the delimiter
(' ' by default)?  Then I would write

;:^:_1!.'-' 'a';'bc';'def'

Much more elegant, I say.

Henry Rich

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm




--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
         /|_      .-----------------------------------.
        ,'  .\  /  | Með léttri lund verður        |
    ,--'    _,'   | Dagurinn í dag                     |
   /       /       | Enn betri en gærdagurinn  |
  (   -.  |        `-----------------------------------'
  |     ) |        (\_ _/)
 (`-.  '--.)       (='.'=)
  `. )----'        (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to