I'm not quite sure what you have said here (which, sadly for me, is
not that all that uncommon of an experience).

Are you saying that you want an explicit definition for h (without any
use of [:) such that 13 : gives a tacit definition?

Thanks,

-- 
Raul

On Tue, Oct 16, 2018 at 1:16 PM Linda Alvord <lindaalvor...@outlook.com> wrote:
>
> Both work and are interesting.  However I'm a fan of:
>
> Dealr=: 13 :'          '
>
> Which will provide a tacit definition. However, maybe it isn't possible.
>
> Linda
>
>
> -----Original Message-----
> From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of 
> Raul Miller
> Sent: Tuesday, October 16, 2018 10:53 AM
> To: Programming forum <programm...@jsoftware.com>
> Subject: Re: [Jprogramming] Using rank to avoid looping - reference?
>
> On Tue, Oct 16, 2018 at 4:46 AM Linda Alvord <lindaalvor...@outlook.com> 
> wrote:
> > ...
> >    Now all that is left to do is Write Dave's "h" as an explicit verb!
>
> That's easy!
>
> h=:4 :0
>   x ([: <"2 ({~ ([: \:"1~ |. $ [: ?.~ */))~) y
> )
>
> But you might have meant something more like:
>
>
> suits=: u: 9827 9830 9829 9824
> faces=: '23456789TJQKA'
> deck=: >,{suits;faces
>
> h=:4 :0
>   deal=. \:"1~ (|.x) $ ?.~ */x
>   <"2 deal { y
> )
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see 
> https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7C9b4dcb50d23b4166e2df08d633772f95%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636752984319598602&amp;sdata=acit9Smi40npgzeJCOYij7kdW48jN2YAyFIZKCWQ6pc%3D&amp;reserved=0
> ----------------------------------------------------------------------
> 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