Optional parameters: Difference between revisions
Content deleted Content added
Optional parameters en FreeBASIC |
|||
Line 2,048: | Line 2,048: | ||
</lang> |
</lang> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
<lang Mathematica>Options[OptionalSort]={ordering->lexicographic,column->1,reverse-> False}; |
<lang Mathematica>Options[OptionalSort]={ordering->lexicographic,column->1,reverse-> False}; |
||
OptionalSort[x_List,OptionsPattern[]]:=If[OptionValue[reverse]==True, |
OptionalSort[x_List,OptionsPattern[]]:=If[OptionValue[reverse]==True, |