Queue/Definition: Difference between revisions
Content added Content deleted
Line 3,374: | Line 3,374: | ||
</lang> |
</lang> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
<lang Mathematica>EmptyQ[a_] := Length[a] == 0 |
<lang Mathematica>EmptyQ[a_] := Length[a] == 0 |
||
SetAttributes[Push, HoldAll]; Push[a_, elem_] := AppendTo[a, elem] |
SetAttributes[Push, HoldAll]; Push[a_, elem_] := AppendTo[a, elem] |