Advertisement
Guest User

214957

a guest
Oct 25th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.62 KB | None | 0 0
  1. 1. read up on regex parsing and come up with 3 esamples
  2. 2. read chapter 15 in Learning Processing book (google drive)
  3. 3. do scala snippets sent in e-mail
  4.  
  5. The goal here is to remember how we can have a list of different objects that do the same thing in different ways.
  6.  
  7. package abstractions
  8.  
  9. object Main extends App {
  10.   def makeSound(animal:List[String])
  11.   def animals = List(new Dog(), new Cat())
  12.   for(each <- animals) {
  13.     each.makeSound()
  14.   }
  15. }
  16.  
  17. Please implement:
  18.  
  19. def factorial(n : Int) : Int without any loops.
  20.  
  21. not req:
  22. http://arxiv.org/pdf/1312.5602v1.pdf
  23. https://www.youtube.com/watch?v=hMxGhHNOkCU
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement