final
class
DList[A] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
++(as: ⇒ DList[A]): DList[A]
-
def
+:(a: A): DList[A]
-
def
:+(a: A): DList[A]
-
final
def
==(arg0: Any): Boolean
-
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
def
flatMap[B](f: (A) ⇒ DList[B]): DList[B]
-
def
foldr[B](z: ⇒ B)(f: (A, ⇒ B) ⇒ B): B
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
headOption: Option[A]
-
-
final
def
isInstanceOf[T0]: Boolean
-
def
map[B](f: (A) ⇒ B): DList[B]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
-
def
toIList: IList[A]
-
def
toList: List[A]
-
def
toString(): String
-
def
uncons[B](z: ⇒ B, f: (A, DList[A]) ⇒ B): B
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
zip[B](bs: ⇒ DList[B]): DList[(A, B)]
Difference lists: a data structure for
O(1)
append on lists. Based onData.DList
, a Haskell library by Don Stewart.A difference list is a function that given a list, returns the original contents of the difference list prepended at the given list.
This structure supports
O(1)
append and snoc operations on lists, making it very useful for append-heavy uses, such as logging and pretty printing.