list - What is a DList? -
I tried googling for this but all I had found was stories about minor celebrity. Looking at the lack of document, what is it?
This is a separate list,
P> Scala & gt; List (1, 2, 3), list (4, 5, 6), list (7, 8, 9)) 1: list [int] = list (1, 2, 3) L2: list [int] = Listening (4, 5, 6) L3: List [int] = List (7, 8, 9)
Efficient prepending:
Scala & Gt; L1 ::: L2 ::: L3 Regi 8: list [int] = list (1, 2, 3, 4, 5, 6, 7, 8, 9)
Inadequate insertion makes it an intermediate list (L1 ++ L2), then ((L1 + + L2) ++ L3)
Scala> L1 ++ l2 ++ l3 // Disable Risk: List [int] = List (1, 2, 3, 4, 5, 6, 7, 8, 9)
Deli Store
append, and only need to create a complete list, is effectively implementing:
scala> List (L1, 2, 3, 4, 5, 6, 7, 8, 9)
Comments
Post a Comment