dotty.tools.dotc.core.Decorators$.ListDecorator
Implements filterConserve, zipWithConserve methods
on lists that avoid duplication of list nodes where feasible.
Attributes Graph Reset zoom Hide graph Show graph
Supertypes class AnyVal
trait Matchable
class Any
Members list Concise view
Value members
Intersection on lists seen as sets
Intersection on lists seen as sets
Attributes
Like xs filter p
but returns list xs
itself - instead of a copy -
if p
is true for all elements.
Like xs filter p
but returns list xs
itself - instead of a copy -
if p
is true for all elements.
Attributes
True if two lists have the same length. Since calling length on linear sequences
is Θ(n), it is an inadvisable way to test length equality. This method is Θ(n min m).
True if two lists have the same length. Since calling length on linear sequences
is Θ(n), it is an inadvisable way to test length equality. This method is Θ(n min m).
Attributes
Like xs.lazyZip(xs.indices).map(f)
, but returns list xs
itself
Like xs.lazyZip(xs.indices).map(f)
, but returns list xs
itself
instead of a copy - if function f
maps all elements of
xs
to themselves.
Attributes
Like xs.lazyZip(ys).map(f)
, but returns list xs
itself
Like xs.lazyZip(ys).map(f)
, but returns list xs
itself
instead of a copy - if function f
maps all elements of
xs
to themselves. Also, it is required that ys
is at least
as long as xs
.
Attributes
Union on lists seen as sets
Union on lists seen as sets
Attributes