class · System

Lists

public class System.Lists : System.Any

What List<T> offers when its items can be compared or tested for equality.

Kind
class
Namespace
System
Assembly
System.Core
Access
public, static, abstract
Source file
Array.ant

Inheritance

Base classes
Any Lists

Methods

static method Sum<T>(list: System.List<T>) -> T
#

static

The total of a list of numbers (0 when empty).

static method Min<T>(list: System.List<T>) -> T
#

static

The smallest and largest; the list must not be empty.

static method Max<T>(list: System.List<T>) -> T
#

static

static method Average<T>(list: System.List<T>) -> f64
#

static

static method Sort<T>(list: System.List<T>) -> void
#

static

static method IndexOf<T>(list: System.List<T>, value: T) -> i32
#

static

static method Contains<T>(list: System.List<T>, value: T) -> bool
#

static

static method Remove<T>(list: System.List<T>, value: T) -> bool
#

static

Takes out the first item equal to value; false when there is none.

Inherited members (5)

Source

Lists as Larva HIR, decompiled from its Larva HIR.

System.Lists.hir
// What List<T> offers when its items can be compared or tested for equality.
public class System.Lists : System.Any
{
    // The total of a list of numbers (0 when empty).
    static method Sum<T>(list: System.List<T>) -> T
    // The smallest and largest; the list must not be empty.
    static method Min<T>(list: System.List<T>) -> T
    static method Max<T>(list: System.List<T>) -> T
    static method Average<T>(list: System.List<T>) -> f64
    static method Sort<T>(list: System.List<T>) -> void
    static method IndexOf<T>(list: System.List<T>, value: T) -> i32
    static method Contains<T>(list: System.List<T>, value: T) -> bool
    // Takes out the first item equal to `value`; false when there is none.
    static method Remove<T>(list: System.List<T>, value: T) -> bool
}
Esc