Anonymous user
Stack: Difference between revisions
→{{header|Dyalect}}
m (→{{header|Phix}}: syntax coloured, replaced parts 2 & 3 with using the builtins) |
|||
Line 2,462:
{{trans|Swift}}
<lang dyalect>type Stack
var xs = []
}
func Stack.IsEmpty() =>
func Stack.Peek() =>
func Stack.Pop() {
var e =
return e
}
func Stack.Push(item) =>
var stack = Stack()
|