Hi Gabriele,
what you say is one of many other useful information found in this
mailing-list. Why nobody writes a technical book (HTML?) about these
advanced information?! If Rebol has these great features, but nobody
will list and explain them, these features will be lost!
If I project a new ca
Hi Jason,
On Sunday, May 05, 2002, 9:30:04 PM, you wrote:
JC> cool.. So why can't I also use a similar syntax to do
>>> remove tail test -2
remove skip tail test -2
JC> Can you elaborate on that a little please.
Most scripting languages are rather slow even if they can be
compiled. Ja
> SKIP can be used with negative values, which is how I normally move
> backwards by more than one position.
Gregg
Yay thanks - that's the one :-)
./Jason
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
Hi Jason,
<< So what are nice efficient REBOL idioms for selecting and removing items,
and
ranges of items, counting from the tail of big complex series? >>
Look at view-ref for all the series related functions. Here are some that
relate directly to this discussion:
AT CLEAR COPY FIND INDEX? IN
> >>> test[-2]
> 'd' >>
>
> That syntax doesn't grab me as being very natural. It kind of makes it look
> like series! are circular as well, which they aren't. Anyway, in general I'm
Well granted it looks daft with trivial "abcde" as my example. But in Python
when you have long strings, nested l
Hi Jason,
<< Python has a really nice tail syntax for ends of list, strings, tuples
etc.
There must be an easy way to do this as cleanly in REBOL...
What do you all think about this essential idioms?
[Python]
>>> test = "abcde"
'abcde'
>>> test[0]
'a'
>>> test[4]
'e'
>>> test[-1]
'e'
>>> test[-
Hi Gabriele
> >> test: head test
> == "abcde"
> >> pick tail test -2
> == #"d"
cool.. So why can't I also use a similar syntax to do
>> remove tail test -2
> Picking a range means copying, so it's better to have that done
> explicitly instead of implicitly.
Can you elaborate on that a lit
Hi Jason,
On Sunday, May 05, 2002, 6:15:42 PM, you wrote:
JC> any ideas?
>> test: tail "abcde"
== ""
>> test/-2
== #"d"
also:
>> test: head test
== "abcde"
>> pick tail test -2
== #"d"
Picking a range means copying, so it's better to have that done
explicitly instead of implicitly.
Regar
Python has a really nice tail syntax for ends of list, strings, tuples etc.
There must be an easy way to do this as cleanly in REBOL...
What do you all think about this essential idioms?
[Python]
>>> test = "abcde"
'abcde'
>>> test[0]
'a'
>>> test[4]
'e'
>>> test[-1]
'e'
>>> test[-2]
'd'
It wor
Hi Patrick,
<< My actual problem is to remove the last character of a string. Has
anyone a
better way ? >>
Your second example is obviously preferable to the first. You could use
CLEAR in place of REMOVE, but in this case I don't think there's a
significant difference.
--Gregg
--
To unsubsc
10 matches
Mail list logo