From: Emeka <eme...@gm...> - 2009-06-29 17:55:04
|
Try this (scratchpad) 9 0 > . You will get t (true). Emeka On Mon, Jun 29, 2009 at 5:36 PM, Emeka <eme...@gm...> wrote: > Thanks so much for raising this issue because I am studying the same page. > > USING: kernel math prettyprint sequences ; 1337 [ dup 0 > ] [ 2/ dup ] > produce nip . > { 668 334 167 83 41 20 10 5 2 1 0 } > > I am pretty new here and I am poorly equipped to chip in. However from Lisp > (FP) you will have something like this ( > 9 0) and it is pretty okay. From > the little I understood Factor is a postfix based language, so in Lisp it > would look like this ( 9 0 >). > > I invite comments. > > Regards, > Emeka > > On Mon, Jun 29, 2009 at 5:23 PM, Harold Hausman <hha...@gm...>wrote: > >> Hi. >> >> Regarding this produce word: >> http://docs.factorcode.org/content/word-produce,sequences.html >> >> I'm confused that the two quotations it uses have stack effects with >> nothing on the left side of the --. >> >> Certainly at least the predicate needs some parameters? >> >> Thanks in advance for any insight, >> -Harold >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Factor-talk mailing list >> Fac...@li... >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > > |