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

[REBOL] Re: Switch with refinements/hmmm!

From: lmecir:mbox:vol:cz at: 31-Oct-2001 23:27

Hi Tim, ...
> refine-switch: func[ /ref-one /ref-two /ref-three][ > switch <duh>what would I put her</duh>[ ; needs a value > ref-one[print "ref-one"] > ref-two[print "ref-two"] > ref-three[print "ref-three"] > ] > ] > > Thanks Joel :>) > > -jn-
how about: refine-switch: func[ /ref-one /ref-two /ref-three][ pif [ ref-one [print "ref-one"] ref-two [print "ref-two"] ref-three [print "ref-three"] ] ] You can find PIF in http://www.sweb.cz/LMecir/highfun.r Cheers Ladislav