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

[REBOL] Re: [Function] with [Variable number of args]

From: atruter::labyrinth::net::au at: 6-Apr-2004 8:43

Hi Gerard, Two ways of passing a variable number of arguments [that I know of] are blocks and refinements. Block usage: f: func [v [integer! block!]][...] f 1 f [1 2] or refinements: f: func [v1 [integer!] /var v2 [integer!]][...] f 1 f/var 1 2 It will be interesting to see what other techniques folks have! ;) Regards, Ashley