AltME: Rebol School

Messages

amacleod
head remove find/only a [c]
this is exactly what I need....
"at" ...new to me!
Thanks all!
Greg,
remove find/only a [c]
seems to work too, without head...
Gregg
Yes, as long as you don't need the result to be at the head.
>> a: [[A] [B] [C]]
== [[A] [B] [C]]
>> remove find/only a [c]
== []
I just included HEAD to make the result clear in this case.
amacleod
I see...I would want that result with head...thanks

GiuseppeC
Hope there is someone here in the morning as I need quick help:
Hope there is someone here in the morning as I need quick help:
GiuseppeC
I have a variable:
mycode: "CODE1"
I need to check  if exist a series named CODE1
If it does not exist create a series called CODE1
append to CODE1 (taken from mycode) something.
PeterWood
Is this any help?
>> value? 'mycode
== false
>> mycode: []
== []
>> value? 'mycode
== true
Something like this, if I understood what you are trying to do properly:
>> if not value? to-word mycode [set to-word mycode [something]]
== [something]
>> CODE1
== [something]
That will create CODE1 in the global context though.
GiuseppeC
I have tried also:
value? get first [mycode]
Lets assume mycode is: CODE1
I whish to create a series whose name as I would write:
CODE1: copy []
Sorry
I whish to create a series whose name is CODE1. Se the code should dinamically take it from MYCODE and execute a line like: CODE1: copy []
GiuseppeC
I don't know if it is the correct way:
mycode: "ONE"
do rejoin [get first [mycode] ":" " copy []"]
type? ONE
== block!
sqlab
do reduce [to-set-word mycode copy []]
GiuseppeC
How do I check if ONE has been set to SERIES dynamically ?
type? reduce [mycode]
does not work
GiuseppeC
Here some code is making me crazy:
>> mycode: "ABC"
== "ABC"
>> do reduce [to-set-word mycode copy []]
== []
>> type? ABC
== block!
>> type? get first reduce [to-word codice-temp]
== block!
>> [type? get first reduce [to-word codice-temp]] <> block!
== true

Last message posted 184 weeks ago.