[Jprogramming] Counting characters
robert therriault
bobtherriault at mac.com
Wed Sep 14 06:07:44 UTC 2016
Hi Skip,
When you define a tacit verb enclose it in parentheses and then make the necessary adjustments.
ts1 =. (+/"1'abc'=/]) NB. pretty clearly a hook
but you want fork
ts1a=. ([: +/"1'abc'=/])
Hope this helps
Cheers, bob
> On Sep 13, 2016, at 10:59 PM, Skip Cave <skip at caveconsulting.com> wrote:
>
> Thanks Bob, Raul, Rob, Pascal, & Henry for your input and help. I still
> haven't gotten the hang of how to chain a srting of verbs together without
> getting into trouble, but I've found if I keep inserting combinations of
> caps, parenthesis, and Ats in random places in the string of verbs, I will
> eventually stumble on a workable solution.
>
> Can anyone define a simple single rule for when you are chaining verbs
> together, to know when and where to cap, or parenthesize and use At?
>
> Skip
>
> Skip Cave
> Cave Consulting LLC
>
> On Tue, Sep 13, 2016 at 10:18 PM, Henry Rich <henryhrich at gmail.com> wrote:
>
>> ts3 =: +/@:=~"0 _
>>
>> 'abc' ts3 'abcbdefbbcbaa'
>>
>> 3 5 2
>>
>>
>> Henry Rich
>>
>> On 9/13/2016 11:13 PM, 'Pascal Jasmin' via Programming wrote:
>>
>>> 'abc' ts2 'abcbdefbbcbaa'
>>>
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list