what's the difference between:
V{ } clone 3 suffix!
V{ } 3 suffix!
I guess my question is why do we need clone, since it takes one object,
but puts back just one object.
Thanks,
--
WhatsUp Gold - Download Free Network
On Fri, 2011-05-06 at 10:12 -0500, Zhe Hu wrote:
what's the difference between:
V{ } clone 3 suffix!
V{ } 3 suffix!
I guess my question is why do we need clone, since it takes one
object, but puts back just one object.
Because V{ }, when written in a function definition, refers
On Sat, May 7, 2011 at 3:12 AM, Zhe Hu iammegat...@gmail.com wrote:
what's the difference between:
V{ } clone 3 suffix!
V{ } 3 suffix!
I guess my question is why do we need clone, since it takes one object,
but puts back just one object.
V{ } creates a literal vector and pushes it on the
V{ (as well as T{ { H{ and others) is a parsing word - it creates a new
object in _parsing_ stage and compiles in _a reference_ to that object.
Without clone each invocation of a word using V{ }/T{ }/... would refer to
same vector/tuple/hash/... - making it something like function's static
Hello!
I'm pretty new to factor and have run into an issue related to the
call word that I'm hoping one of you can help me understand.
Basically what it comes down to is I'm trying to use the 1|| word (which
runs call) and a vector of fry'd quots:
---
!
Hi Matt,
first of all, just in case you didn't know, the words you are trying
to write already exist in the library in the sets vocabulary.
Also, instead of reducing your sequence and pushing it to a vector,
you can just use map.
Regarding your question on call:
.The reason for the difference
Hi Jon,
On Fri, 2011-05-06 at 22:14 +, Jon Harper wrote:
Hi Matt,
first of all, just in case you didn't know, the words you are trying
to write already exist in the library in the sets vocabulary.
Also, instead of reducing your sequence and pushing it to a vector,
you can just use map.
Hi Matt,
On Fri, May 6, 2011 at 6:51 PM, Matt Edlefsen matt.edlef...@gmail.com wrote:
As for mapping instead of reducing, the issue I ran into was that map
seems to try to wrap the result in the same sequence type that the input
was. That works great for vectors, but when the sequence is a