toList method

List<A> toList()

Implementation

List<A> toList() => foldLeft([], (List<A> p, a) => p..add(a));