I can't propose a substantive improvement. All I can offer are
definitions that reduce the use of parentheses, at the expense of
sweeping standard construction under a bit of a syntactic rug:

   G =: 1 :'`u'
   xG=: `: 6

   cyclef=: @{. ,~G }.G  xG


On Sun, Mar 1, 2009 at 8:29 PM, June Kim <[email protected]> wrote:
> Tracy Harms recently put his version of cyclef at
> http://twitter.com/kaleidic/status/1265468079 in response to Jason
> Catena's Haskel version at
> http://twitter.com/catenate/status/1264584412
>
> I tried to come up with a tacit version(yeah, ugly) and so far I got:
>
>   cyclef=:( (@{.) (`(,~)) (`}.) ) (`: 6)
>   *: cyclef i.5
> 1 2 3 4 0
>   *: cyclef 10 20 30 40
> 20 30 40 100
>
> Could you suggest any improvements for the tacit version?
> ----------------------------------------------------------------------
> 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