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

[REBOL] Mapping series

From: massung:gmai:l at: 8-Mar-2006 13:56

So, I'm sure REBOL has some sort of support for this, but I have yet to find it. Does REBOL have any built-in support for traditional mapping functions that are found in Lisp? For example, I'd like to do something similar to: square: func [n] [ 2 * n ] map :square [ 1 2 3 4 ] == [ 1 4 9 16 ] map :uppercase [ "jeff" "massung" ] == [ "JEFF" "MASSUNG" ] I can, of course, roll my own MAP function easily enough, but I thought I'd see if there was a native function to do this (under a different name that isn't obvious to me) first. If there isn't, I think this would be a very valuable addition to the language, BTW. Jeff M. -- massung-gmail.com