Re: Options in self-defined functions
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg1678] Re: [mg1612] Options in self-defined functions
- From: harrison at helios.physics.utoronto.ca (David Harrison)
- Date: Sun, 16 Jul 1995 23:54:14 -0400
- Organization: University of Toronto - Dept. of Physics
In article <3tmskr$hvo at news0.cybernetics.net>, Anthony Rebello <arebello at knox.edu> wrote an excellent summary of setting up Options. One small point however: he defines the function as: >f[x_,opts___Rule] := ... A slightly better idea is to use OptionQ: f[x_,opts___?OptionQ] := ... -- David Harrison | "The senses do not lie, only Dept. of Physics, Univ. of Toronto | they do not tell the truth." Inet: harrison at faraday.physics.utoronto.ca | -- Mach Tel: 416-978-2977 Fax: 416-978-5848 |