wavec022

L7 Notes

Feb 3rd, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Lesson 7 (?) Notes
  2.  
  3. write ignoretest on homework to stop it from doing the first test but then change it back to test
  4.  
  5. SList vs MList
  6. functions vs methods
  7.  
  8. length() DCG
  9. (1,2,3,4,5)
  10. 1 D (2,3,4,5)
  11. 1 + length(tail)
  12.  
  13. =====
  14.  
  15. SList drop(list: SList, x: Int)
  16. (1,2,3,4); n = 2
  17. 1 (item) D (2,3,4) (next)
  18. C (3,4) -- drop(list.next, x-1)
  19.  
  20. (3,4)
Add Comment
Please, Sign In to add comment