Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Hashes in Rebol

From: knizhnik:garret:ru at: 9-Dec-2003 14:47

Sorry, I am trying to implement Rebol API to my OO database DyBASE and not yet familiar with Rebol. I completely confused by lack of normal associative arrays or hashes. Yes - in Rebol there is hash! type and "select" function makes it possible to extract values from hash. But I also want to remove and replace elements in hash. There no hash specific "replace" and "remove" functions which can deal with <key, value> pairs. Certainly, I am sure that it is possible to update hash table using standard "remove" and "replace" function but it seems to be non trivial. So may be I missed something? Associative arrays are one of the most fundamental structure especially in scripting language and some languages provides no other collection types except arrays. Why them are implemented in Rebol in such strange way? Once again sorry for question which may be obvious for experienced Rebol programmers, but how can I 1. Remove <key, value> pair from hash 2. Change value associated with the particular key -- Best regards, Konstantin mailto:[knizhnik--garret--ru]