[Jprogramming] ":123 = ":123
Raul Miller
rauldmiller at gmail.com
Sat Oct 16 20:06:35 UTC 2021
":123 is equivalent to '123'
123='123' is equivalent to 0 0 0
":0 0 0 is equivalent to '0 0 0'
More generally, in J when dealing with nouns, verbs and/or assignment
statements, evaluation is strictly right to left.
I hope this makes sense,
--
Raul
On Sat, Oct 16, 2021 at 4:04 PM P Padilcdx <ppadilcdx at gmail.com> wrote:
>
> Hopefully a quick newbie question. When I execute ":123 = “:123 I get 0 0 0. Needless to say, I expected 1 1 1. Any clarification/explanation much appreciated.
>
> Regards
> Pete
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list