Hi Charles,
>First off, my thanks to everyone demonstrating The Way Things Work. I
don't
> get to work in REBOL all that much anymore, so what knowledge I had of it
has
> dwindled, and I find myself looking at older code of my own and thinking,
"Why
> did I do that? It works, but *how* doe
First off, my thanks to everyone demonstrating The Way Things Work. I don't
get to work in REBOL all that much anymore, so what knowledge I had of it has
dwindled, and I find myself looking at older code of my own and thinking, "Why
did I do that? It works, but *how* does it work?"
> cha
Cool! At last! ;)
>> do http://www.lexicon.net/anton/rebol/demo/demo-series.r
connecting to: www.lexicon.net
** Script Error: This script needs view or better to function correctly
** Near: do http://www.lexicon.net/anton/rebol/demo/demo-series.r
>>
I think I'm going to save any further
- Original Message -
From: "Gabriele Santilli" <[EMAIL PROTECTED]>
To: "Charles" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 4:43 AM
Subject: [REBOL] Re: Newbie Q: Cropping text
> Hi Charles,
>
> On Monday, July 08, 2002, 5:56:12 AM, you wro
FAH!! My apologies for the previous post, wherein no text was added :/
> >> !=: get first [ <> ]
> >> 1 != 2
> == true
>
> Adapt REBOL to yourself... :-)
Yeahbut, if you do that too often, your code won't be portable, unless you
include your custom definitions in every script you submit, o
Note to self:
Proffredd befour hittyng sind!
Joel Neely wrote:
>
>
> b: make block! NN: (length? a) - 2
> c: a
> loop NN [append b (first c) + (second c) + (third c) / 3.0]
>
Should have read
b: make block! NN: (length? a) - 2
c: a
loop NN [
append b (first c
Hi, Alexander,
[EMAIL PROTECTED] wrote:
>
> Now, a concrete question to round off with; does anybody
> know of any really good tutorials (or somesuch)? I find the
> original examples from the rebol.com site fair enough, but they
> are so simple that they are of little practical value. Does there
Hi people,
Joel wrote:
> Learning to think differently takes work and time, but the
> rewards are definitely there (speaking from personal experience)!
Thanks for sharing those thoughts, Joel. Very true stuff.
I'm a newbie to Rebol myself, trying to grasp its methods and
functions, and I - as
Hi, Charles,
You've already gotten specific answers from other folks (INDEX?,
AT, HEAD, etc...) so please allow me to wax philosophical for a
moment or two.
Charles wrote:
>
> For instance, in C, I would have something like int idx; wherein
> I could use array[idx]; and move around by increasin
Charles:
>Still, I like to know where REBOL is, or thinks it is. I like to be
able
> to
> have some sort of index instantly available to me like that. Yes, I know,
I
> can use pick series 3, but when I use 'next and 'skip and whatnot I get
> lost.
You can also use a more explicit
There is also 'at, to set the position:
a: ["a" "b" "c"]
a: at a 2 ; also try negative values
a ; == ["b" "c"]
a: head a ; == ["a" "b" "c"]
Anton.
> > Does REBOL think it's at the first value, the second, the third, etc?
> How can I find out?
>
> >> a: ["a" "b"
Hi Charles,
> > > Personally, I have a hard time working with
> > > series! with next and skip and tail and so forth.
> > > A pointer to a list element which I cannot see irritates me.
> >
> > I don't understand what you mean. That is, what do mean by see?
>For instance, in C, I would have so
Hi Charles,
On Monday, July 08, 2002, 5:56:12 AM, you wrote:
C>For instance, in C, I would have something like int idx; wherein I could use
C> array[idx]; and move around by increasing and decreasing the index marker. How
idx: 3
series/:idx
C> can I optically see where 'next will
> Does REBOL think it's at the first value, the second, the third, etc?
How can I find out?
>> a: ["a" "b" "c"]
== ["a" "b" "c"]
>> length? a
== 3
>> a: next a
== ["b" "c"]
>> index? a
== 2
Regards,
Ashley
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] wit
> To Charles:
>
> > Personally, I have a hard time working with
> > series! with next and skip and tail and so forth.
> > A pointer to a list element which I cannot see irritates me.
>
> I don't understand what you mean. That is, what do mean by see?
For instance, in C, I would have something l
I made a little demo which may help understanding
series a bit easier for beginners.
do http://www.lexicon.net/anton/rebol/demo/demo-series.r
or through the Rebol desktop:
Rebol.com/Sites/Anton/Demo/demo-series.r
(the arrow looks a bit strange on the last full release of
rebol,
To Matt:
There is also:
>> parse/all "asdfghjkl" [copy text 3 skip to end]
== true
>> probe text
"asd"
== "asd"
To Charles:
copy/part at series 2 next at series 5
copy at series 3
remove/part at series 2 next at series 5
remove at series 3
> Persona
Hi Charles,
Only one question left to be answered:
<< Or I want to remove those selections? >>
set-mid: func [series [series!] new-data start [integer!] /part len
[integer!]][
len: any [len length? new-data]
head change/part at series start new-data len
]
--Gregg
--
To unsubscribe fr
Hi Charles,
On Thursday, July 04, 2002, 7:02:50 AM, you wrote:
C> series! with next and skip and tail and so forth. A pointer to a list element
C> which I cannot see irritates me.
Ok, so you need:
right: func [series [series!] elements [integer!]] [
copy skip tail series negate el
Charles:
> Suppose I only want characters 2 through 5? Or 3 until the end? Or I
> want
> to remove those selections? Personally, I have a hard time working with
> series! with next and skip and tail and so forth. A pointer to a list
> element
> which I cannot see irritates me.
One w
es me.
- Original Message -
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 6:27 PM
Subject: [REBOL] Re: Newbie Q: Cropping text
> Hi Matt,
>
> do you mean something like:
>
> copy/part "asdfghjkl&
At 15:49 3.7.2002 -0400, you wrote:
>What line of code in REBOL will crop text? (Without loops)
>
>For example, I want the first 3 characters in the string "asdfghjkl".
>
>Result should be: "asd".
>> A: "this is a string"
>> B: copy/part a 3
>> print B
thi
Ok?
>Thanks!
>Matt
>
>--
>To unsu
Hi Matt,
do you mean something like:
copy/part "asdfghjkl" 3 ; == "asd"
-L
- Original Message -
From: "Matthew Kim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 9:49 PM
Subject: [REBOL] Newbie Q: Cropping text
What line of code in REBOL will crop te
Hi Matt,
> For example, I want the first 3 characters in the string "asdfghjkl".
>
> Result should be: "asd".
If you want to 'crop' a string! or any kind of series!, use copy --
>> copy/part "asdfghjkl" 3
== "asd"
- Chris
--
To unsubscribe from this list, please send an email to
[EMAIL PROT
24 matches
Mail list logo