,>' ', &.> 'Sassa'
 S a s s a

2006/3/22, Чередниченко Александр Олегович <[EMAIL PROTECTED]>:
>
> Hello guys.
>
> I have  just started learning J and got some problems with TACIT form of
> thinking...
> Thus I'll be asking some silly question for first time :)
>
> So the question is:
> I have a string of chars. I need to insert space between each two
> characters. Sounds like a
> simple task, but I can't figure out how to compose a corresponding verb.
>
> Surely, I defined an explicit function solving this problem. It looks like
>
>            join =: 4 : 0
>         x., ' ', y.
>         )
>
> now this works as
>            join / 'Sassa'
>         S a s s a
>
> It works well but it is a still imperative. And I want to learn to think
> in functionals.
>
> I will be very joyful if you help me.
>
> Thanks a lot, and sorry if made some spam :)
>
>          Alexander Cherednichenko
>          [ the only way out is the way up ]
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23,
Skype: gosiminn, gsm: +3546985532
802 Selfoss ,t-póst: [EMAIL PROTECTED]
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