Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. read up on regex parsing and come up with 3 esamples
- 2. read chapter 15 in Learning Processing book (google drive)
- 3. do scala snippets sent in e-mail
- The goal here is to remember how we can have a list of different objects that do the same thing in different ways.
- package abstractions
- object Main extends App {
- def makeSound(animal:List[String])
- def animals = List(new Dog(), new Cat())
- for(each <- animals) {
- each.makeSound()
- }
- }
- Please implement:
- def factorial(n : Int) : Int without any loops.
- not req:
- http://arxiv.org/pdf/1312.5602v1.pdf
- https://www.youtube.com/watch?v=hMxGhHNOkCU
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement