Hi Brian,
I haven't had a chance to really take this apart to see how it ticks, but are
you sure that e. is monadic? It looks like the first verb on the left tine,
which I usually would think is dyadic, but there may be more things than are
dreamt of in my philosophy.
Also, I don't think your shorter version works for the period (.) arguments. I
don't yet know why, but I get the feeling I am going to learn why [: v v is not
always the same as v@v.
Thanks for giving me one more thing to think about! :)
cheers, bob
On 2012-08-27, at 7:48 PM, Brian Schott wrote:
> #'[:|:((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0'
> 48
> #'|:@((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0'
> 47
>
> I don't remember ever seeing monadic e. used. Sweet.
> ---
> (B=)
>
> On Aug 27, 2012, at 7:04 PM, Raul Miller <[email protected]> wrote:
>
>> Borrowing some ideas from other people in this thread:
>>
>> f=:[:|:((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0
>>
>> Example uses:
>> f 'a'
>> f '-'
>> f 'C.'
>>
>> --
>> Raul
>> ----------------------------------------------------------------------
>> 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