Hello [EMAIL PROTECTED]!
On 16-Set-00, you wrote:
A> And here's a version that's shorter and nicer to use. Can any
A> one think of a shorter version?
Yup. ;^)
associate: func [block [block!] key value] [
head change/only any [
find/tail block key
insert tail block key
] reduce [val]
]
associate?: func [block [block!] key] [
all [key: select block key first key]
]
Regards,
Gabriele.
--
Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
- [REBOL] Associative data store Re: rebol
- [REBOL] Associative data store Re: Al . Bri
- [REBOL] Associative data store Re:(2) Al . Bri
- [REBOL] Associative data store Re:(3) Al . Bri
- [REBOL] Associative data store Re:(5) g . santilli
- [REBOL] Associative data store Re:(5) Al . Bri
- [REBOL] Re: Associative data store ... g . santilli
- [REBOL] Re: Associative data store Re: g . santilli
- [REBOL] Associative Data Store Al . Bri
- [REBOL] Associative Data Store Re: joel . neely
- [REBOL] Associative Data Store Re:(2) rebol
- [REBOL] Associative Data Store Re:(3) petr . krenzelok
