| changeset 296 | 4e5bc75cdbd3 | 
| parent 220 | 1c47cede8e71 | 
| 295:bfbc7dd3e35c | 296:4e5bc75cdbd3 | 
|---|---|
1 import CW8a._  | 
|
1  | 
2  | 
2 val f_urban = (x:(Int, Int)) => if (x._1 > 3) Some(List(x)) else None  | 
3 val f_urban = (x:(Int, Int)) => if (x._1 > 3) Some(List(x)) else None  | 
3  | 
4  | 
4 assert(first(List((1,0),(2,0),(3,0),(4,0)), f_urban) == Some(List((4,0))))  | 
5 assert(first(List((1,0),(2,0),(3,0),(4,0)), f_urban) == Some(List((4,0))))  | 
5 assert(first(List((1,0),(2,0),(3,0)), f_urban) == None)  | 
6 assert(first(List((1,0),(2,0),(3,0)), f_urban) == None)  |