Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val comb = List(('b',1)) //> comb : List[(Char, Int)] = List((b,1))
- ('a',2) match {
- case(c,x) => for {
- i <- 1 to x
- } yield( (c,i) :: comb )
- case _ => List()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement