[REBOL] Re: Hashes in Rebol
From: nitsch-lists:netcologne at: 9-Dec-2003 21:37
Am Dienstag 09 Dezember 2003 20:57 schrieb Konstantin Knizhnik:
> Hello Christian,
>
> Tuesday, December 9, 2003, 10:33:44 PM, you wrote:
> >> == make hash! [1 "one" 2 "two"]
> >>
> >>>> h select 1
>
> CL> select h 1
>
> O, sorry - such stupid mistyping:(
> I was confused, because
> h select "1"
> doesn't report any error and returns none...
eeks. yes,
ARGUMENTS:
series -- (Type: series port)
value -- (Type: any-type)
that means any-type, including nothing. like this:
> a: reduce[1 "one" () "what??"]
!== [1 "one" unset "what??"]
>> (select a)
!== "what??"
if it does not find unset, it returns none. like your error:
>> (select [1 2])
== none
has some uses in console. for example 'help can be called with or without a
word.
with 'select its quite confusing.
-Volker