Skip to content

Default

Default(symbol)

Default returns the default value associated with the symbol for a pattern default _. expression.

Default returns the default value associated with the symbol for a pattern default _. expression at position pos.

Examples

>> Default(test) = 1
1
>> test(x_., y_.) = {x, y}
{x,y}
>> test(a)
{a,1}
>> test( )
{1,1}

Implementation status

  • ✅ - full supported

Github