Yes, Bjorn! Back in the day, when I work on a Vax 11/780 the walk to the printer room and back usually solved the issue.
These days it is called Yoda programming I think but I know it as 'Cardboard Programmer' syndrome, when talking to a cardboard cut-out quite often suffices. On Wed, 23 Dec 2020 at 16:11, Björn Helgason <gos...@gmail.com> wrote: > In general trying to explain something you are trying to solve to someone > often makes you see the solution even if that somone does not understand > what you are talking about. > > Þann mið., 23. des. 2020, 15:23 emacstheviking skrifaði <obji...@gmail.com > >: > > > Henry, > > > > Yes I managed to figure it out myself in between emails! Funny how > sending > > an email somehow brings things to light... but about 2 femtoseconds after > > pressing Send. > > > > Thank you very much. > > > > J continues to both delight me and mentally destroy me . > > > > > > > > On Wed, 23 Dec 2020 at 15:02, Henry Rich <henryhr...@gmail.com> wrote: > > > > > Order of evaluation is right to left. These are all monads. > > > > > > ?2, ?100, ?100 > > > > > > ?2, ? 100 , rand0 > > > > > > If rand0 is 0 the next ? will return a float. > > > > > > Henry Rich > > > > > > On 12/23/2020 9:39 AM, emacstheviking wrote: > > > > Henry, > > > > > > > > I am not exactly sure what you mean but after posting I spotted that > I > > > was > > > > assigning type to a random value then using that as the argument to > > > roll, I > > > > fixed that. If you start a jconsole session and type > > > > > > > > ?2, ?100, ?100 > > > > > > > > sooner or later you get a float... placing parens. around it > > > > > > > > (?2), (?100), (?100) > > > > > > > > gives me the expected list of three integers so I guess it's to do > with > > > > order of evaluation as roll can take one or two arguments... still > > > learning > > > > J. > > > > > > > > Thanks > > > > Sean > > > > > ---------------------------------------------------------------------- > > > > For information about J forums see > http://www.jsoftware.com/forums.htm > > > > > > > > > -- > > > This email has been checked for viruses by AVG. > > > https://www.avg.com > > > > > > ---------------------------------------------------------------------- > > > 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