This could be an opportunity for the community to step up and help get a change implemented. I'll post something on chat for those who are interested.
On Tue, Jun 23, 2015 at 7:28 AM, 'Pascal Jasmin' via Programming <[email protected]> wrote: > or special code or defining 129!:42 or R. to something like: 1 : (':';' > for_i. |. x do y =. x u y end.') > > which may look more like the C implementation, and doesn't slow down > non-special code when looking for special code, and doesn't risk breaking > anything else. > > > ----- Original Message ----- > From: "[email protected]" <[email protected]> > To: [email protected] > Cc: > Sent: Tuesday, June 23, 2015 4:01 AM > Subject: Re: [Jprogramming] Reduce with initial value? > > The language allows it, with > > u&.>/@(<"_1@[ , <@]) > > so all that would be needed is support for that form, right? > > The real problem is how to get an interpreter change into the released path. > If Marshall can't do that, what hope is there for someone like me? > > Henry Rich > > ---- Marshall Lochbaum <[email protected]> wrote: >> Short answer: there is no efficient way (and I find this to be a huge >> problem). >> >> The most recent thread on this topic is here: >> http://jsoftware.com/pipermail/programming/2015-February/041005.html >> >> Marshall >> >> On Tue, Jun 23, 2015 at 01:53:36AM +0000, Marshall Bockrath-Vandegrift wrote: >> > Hi all, >> > >> > I'm still in the process of learning J, and trying to adapt ideas from >> > other languages. In many (other?) functional programming languages it is >> > possible to reduce over a collection starting with a provided initial value >> > which does not belong to the reduced collection. To attempt to put this in >> > J terms, such an operation would allow the initial value and result of each >> > reduction step to have a different shape than that of the the items of the >> > value being reduced. As far as I can tell, the standard `/` adverb provides >> > no such facility. Is there a J idiom for this? >> > >> > Thanks, >> > >> > -Marshall >> > ---------------------------------------------------------------------- >> > 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
