Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

condition placement

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71242] condition placement
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Sat, 11 Nov 2006 03:39:03 -0500 (EST)

there seem to be a lot of subtleties about the placement of condition

for instance, the following will not substitute the matched value of
boxes into stringFormattableQ

toString[expr_,boxes_,opts:optionsOrNullPseudoPatternObject/;stringFormattableQ[boxes]]:=
	toStringKernel[expr,boxes,opts];

this will

toString[expr_,boxes_/;stringFormattableQ[boxes],opts:optionsOrNullPseudoPatternObject]:=
	toStringKernel[expr,boxes,opts];

hmm

-- 
http://chris.chiasson.name/


  • Prev by Date: Re: Understanding N and Precision
  • Next by Date: frustrating pattern matcher
  • Previous by thread: Re: Bairstow Method
  • Next by thread: frustrating pattern matcher