mardi 3 février 2015

How to get element from method returning list [on hold]


I have method



split ( numbers : List[Int], ind : Int ) : ( List[Int], List[Int] ) = {
....
}


I would like to in second method merge take first list returned split.


I have try



split(numbers, 2).lift(0)


or



split(numbers, 2)(0)


None of these works. Is there any way to do this? Thanks





Aucun commentaire:

Enregistrer un commentaire