Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Stack/Logtalk/stack.logtalk
Normal file
12
Task/Stack/Logtalk/stack.logtalk
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
:- object(stack).
|
||||
|
||||
:- public(push/3).
|
||||
push(Element, Stack, [Element| Stack]).
|
||||
|
||||
:- public(pop/3).
|
||||
pop([Top| Stack], Top, Stack).
|
||||
|
||||
:- public(empty/1)
|
||||
empty([]).
|
||||
|
||||
:- end_object.
|
||||
Loading…
Add table
Add a link
Reference in a new issue