Optional
Optional(patt, default)or
patt : defaultis a pattern which matches
patt, which if omitted should be replaced bydefault.
Examples
>> f(x_, y_:1) := {x, y}
>> f(1, 2){1,2}
>> f(a){a,1}Implementation status
- ✅ - full supported
Optional(patt, default)or
patt : defaultis a pattern which matches
patt, which if omitted should be replaced bydefault.
>> f(x_, y_:1) := {x, y}
>> f(1, 2){1,2}
>> f(a){a,1}