Or,
  [: #;._1 ' ',]

-- 
Raul

On Wednesday, October 31, 2012, Linda Alvord <lindaalv...@verizon.net>
wrote:
> Here's where I was heading:
>
>    f=: 13 :'#;._2 '' '',~ y'
>    f
> [: #;._2 ' ' ,~ ]
>    f 'blåbærgrød & crème fraise   '
> 13 1 6 6 0 0 0
>
>    g=: 13 :'#;._2 '' '',~ 7 u: y'
>    g
> [: #;._2 ' ' ,~ 7 u: ]
>    g 'blåbærgrød & crème fraise   '
> 10 1 5 6 0 0 0
>
> Linda
>
>
> -----Original Message-----
> From: programming-boun...@forums.jsoftware.com
> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Bo Jacoby
> Sent: Friday, October 26, 2012 8:39 PM
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] danish blueberry porridge. Resolved!
>
> Bob's verb did the trick. Thank you everyone!
>    ([:#;._2,&' ') 'blåbærgrød & crème fraise   '
> 13 1 6 6 0 0 0
>    ([:#;._2,&' ') 7 u: 'blåbærgrød & crème fraise   '
> 10 1 5 6 0 0 0
> - Bo
>
>
>>________________________________
>> Fra: Henry Rich <henryhr...@nc.rr.com>
>>Til: programm...@jsoftware.com
>>Sendt: 3:20 lørdag den 20. oktober 2012
>>Emne: Re: [Jprogramming] danish blueberry porridge
>>
>>Somewhere there is a description of how to use dyad ;: to emulate monad
>>;: .  You can modify that as required.
>>
>>Henry Rich
>>
>>On 10/19/2012 8:57 PM, bob therriault wrote:
>>> What about using cut? (;.)
>>>
>>>   k=.'blåbærgrød'
>>>     k
>>> blåbærgrød
>>>     t=: (a:-.~<;._2)@,&' '  NB. removing a: to clean up multiple
>>>spaces
>>>     t k
>>> +-------------+
>>> |blåbærgrød|
>>> +-------------+
>>>     k=.'blåbærgrød blåbærgrød'
>>>     t k
>>> +-------------+-------------+
>>> |blåbærgrød|blåbærgrød|
>>> +-------------+-------------+
>>>     k=.'blåbærgrød         blåbærgrød'
>>>     t k
>>> +-------------+-------------+
>>> |blåbærgrød|blåbærgrød|
>>> +-------------+-------------+
>>>
>>> On 2012-10-19, at 4:05 PM, Bo Jacoby wrote:
>>>
>>>>     k=.'blåbærgrød'
>>>
>>> ---------------------------------------------------------------------
>>> - For information about J forums see
>>> http://www.jsoftware.com/forums.htm
>>>
>>----------------------------------------------------------------------
>>For information about J forums see http://www.jsoftware.com/forums.htm
>>
>>
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to