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