Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object P04 {
- def length[A](xs: List[A]): Int = (0 /: xs) { (n, _) => n + 1 }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement