Tag Info

New answers tagged

3

I think you can move condition outside brackets: ClearAll[f]; f[x_Integer : 1] /; x >= 0 := {x}


4

Fixed in 10.1 (windows) code MatchQ[{1, 2}, {a_, b_}] MatchQ[{1, 2}, {a_, b_: 0}] MatchQ[{1, 2}, {PatternSequence[a_, b_]}] MatchQ[{1, 2}, {PatternSequence[a_, b_: 0]}]



Top 50 recent answers are included