Skip to content

Commit

Permalink
Simplify simple-linked-list stub (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras authored Dec 23, 2023
1 parent 2addc03 commit 6e144cc
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions exercises/practice/simple-linked-list/simple-linked-list.arr
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,6 @@ use context essentials2020

provide-types *

#|
We have given you a beginning structure to help pass the tests here.
|#
data LinkedList:
| empty-list
| linked-list(head, tail) with:
method get-head(self):
raise("please implement the get-head method")
end,
method get-tail(self):
raise("please implement the get-tail method")
end
sharing:
method length(self):
raise("please implement the length method")
end,
method push(self, val):
raise("please implement the push method")
end,
method reversed(self):
raise("please implement the reversed method")
end,
method to-list(self):
raise("please implement the to-list method")
end
... # Replace the dots with your implementation
end

0 comments on commit 6e144cc

Please sign in to comment.