Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Lesson 7 (?) Notes
- write ignoretest on homework to stop it from doing the first test but then change it back to test
- SList vs MList
- functions vs methods
- length() DCG
- (1,2,3,4,5)
- 1 D (2,3,4,5)
- 1 + length(tail)
- =====
- SList drop(list: SList, x: Int)
- (1,2,3,4); n = 2
- 1 (item) D (2,3,4) (next)
- C (3,4) -- drop(list.next, x-1)
- (3,4)
Add Comment
Please, Sign In to add comment