Slice<T>

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island, macOS
  • Namespace: go.builtin

Implements

 

constructor

 

constructor

 

Slice<T>()

 

init()

constructor (array of T)

 

constructor(params aArray: array of T)

 

Slice<T>(params T[] aArray)

 

init(_ aArray: T...)

Parameters:

  • aArray:

constructor (array of T, Int32, Int32)

 

constructor(aArray: array of T; aStart: Int32; aCount: Int32)

 

Slice<T>(T[] aArray, Int32 aStart, Int32 aCount)

 

init(_ aArray: T..., _ aStart: Int32, _ aCount: Int32)

Parameters:

  • aArray:
  • aStart:
  • aCount:

constructor (int)

 

constructor(aSize: int)

 

Slice<T>(int aSize)

 

init(_ aSize: int)

Parameters:

  • aSize:

constructor (int, int)

 

constructor(aSize: int; aCap: int)

 

Slice<T>(int aSize, int aCap)

 

init(_ aSize: int, _ aCap: int)

Parameters:

  • aSize:
  • aCap:

constructor (int, int64)

 

constructor(aSize: int; aCap: int64)

 

Slice<T>(int aSize, int64 aCap)

 

init(_ aSize: int, _ aCap: int64)

Parameters:

  • aSize:
  • aCap:

constructor (int64)

 

constructor(aSize: int64)

 

Slice<T>(int64 aSize)

 

init(_ aSize: int64)

Parameters:

  • aSize:

constructor (int64, int)

 

constructor(aSize: int64; aCap: int)

 

Slice<T>(int64 aSize, int aCap)

 

init(_ aSize: int64, _ aCap: int)

Parameters:

  • aSize:
  • aCap:

constructor (int64, int64)

 

constructor(aSize: int64; aCap: int64)

 

Slice<T>(int64 aSize, int64 aCap)

 

init(_ aSize: int64, _ aCap: int64)

Parameters:

  • aSize:
  • aCap:

constructor (Slice<T>)

 

constructor(value: Slice<T>)

 

Slice<T>(Slice<T> value)

 

init(_ value: Slice<T>)

Parameters:

  • value:

Add

 

method Add(a: Int32; b: T)

 

void Add(Int32 a, T b)

 

func Add(_ a: Int32, _ b: T)

 

func Add(a Int32, b T)

Parameters:

  • a:
  • b:

Assign (array of T)

 

method Assign(aOrg: array of T)

 

void Assign(T[] aOrg)

 

func Assign(_ aOrg: T...)

 

func Assign(aOrg []T)

Parameters:

  • aOrg:

Assign (Slice<T>)

 

method Assign(aOrg: Slice<T>)

 

void Assign(Slice<T> aOrg)

 

func Assign(_ aOrg: Slice<T>)

 

func Assign(aOrg Slice<T>)

Parameters:

  • aOrg:

Capacity

 

property Capacity: Int32 read;

 

Int32 Capacity { get; }

 

var Capacity: Int32 { get{} }

 

Capacity Int32

Copy

 

class method Copy(aSource: Slice<T>; aDest: Slice<T>)

 

static void Copy(Slice<T> aSource, Slice<T> aDest)

 

static func Copy(_ aSource: Slice<T>, _ aDest: Slice<T>)

 

func Copy(aSource Slice<T>, aDest Slice<T>)

Parameters:

  • aSource:
  • aDest:

GetSequence

 

// .NET, Island, macOS
method GetSequence: IEnumerable<tuple of (Int32, T)>
// .NET Standard 2.0
method GetSequence: IEnumerable<ValueTuple<Int32, T>>

 

// .NET, Island, macOS
IEnumerable<(Int32, T)> GetSequence()
// .NET Standard 2.0
IEnumerable<ValueTuple<Int32, T>> GetSequence()

 

// .NET, Island, macOS
func GetSequence() -> IEnumerable<(Int32, T)>
// .NET Standard 2.0
func GetSequence() -> IEnumerable<ValueTuple<Int32, T>>

 

// .NET, Island, macOS
func GetSequence() IEnumerable<tuple of (Int32, T)>
// .NET Standard 2.0
func GetSequence() IEnumerable<ValueTuple<Int32, T>>

Grow

 

method Grow(aNewLen: Int32): Slice<T>

 

Slice<T> Grow(Int32 aNewLen)

 

func Grow(_ aNewLen: Int32) -> Slice<T>

 

func Grow(aNewLen Int32) Slice<T>

Parameters:

  • aNewLen:

Item

 

property Item[i: Int32]: T read write;

 

T Item[Int32 i] { get; set; }

 

subscript Item(_ i: Int32) -> T { get{} set{} }

 

Item[[i Int32]] T

Len

 

method Len: int

 

int Len()

 

func Len() -> int

 

func Len() int

Length

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Length Int32

Less

 

method Less(a: int; b: int): bool

 

bool Less(int a, int b)

 

func Less(_ a: int, _ b: int) -> bool

 

func Less(a int, b int) bool

Parameters:

  • a:
  • b:

Swap

 

method Swap(a: int; b: int)

 

void Swap(int a, int b)

 

func Swap(_ a: int, _ b: int)

 

func Swap(a int, b int)

Parameters:

  • a:
  • b:

ToArray

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

func ToArray() []T

Zero

 

class property Zero: Slice<T> read write;

 

class Slice<T> Zero { get; set; }

 

static var Zero: Slice<T> { get{} set{} }

 

Zero Slice<T>

 

Capacity

 

property Capacity: Int32 read;

 

Int32 Capacity { get; }

 

var Capacity: Int32 { get{} }

 

Capacity Int32

Item

 

property Item[i: Int32]: T read write;

 

T Item[Int32 i] { get; set; }

 

subscript Item(_ i: Int32) -> T { get{} set{} }

 

Item[[i Int32]] T

Length

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Length Int32

Zero

 

class property Zero: Slice<T> read write;

 

class Slice<T> Zero { get; set; }

 

static var Zero: Slice<T> { get{} set{} }

 

Zero Slice<T>

 

Copy

 

class method Copy(aSource: Slice<T>; aDest: Slice<T>)

 

static void Copy(Slice<T> aSource, Slice<T> aDest)

 

static func Copy(_ aSource: Slice<T>, _ aDest: Slice<T>)

 

func Copy(aSource Slice<T>, aDest Slice<T>)

Parameters:

  • aSource:
  • aDest:

 

constructor

 

constructor

 

Slice<T>()

 

init()

constructor (array of T)

 

constructor(params aArray: array of T)

 

Slice<T>(params T[] aArray)

 

init(_ aArray: T...)

Parameters:

  • aArray:

constructor (array of T, Int32, Int32)

 

constructor(aArray: array of T; aStart: Int32; aCount: Int32)

 

Slice<T>(T[] aArray, Int32 aStart, Int32 aCount)

 

init(_ aArray: T..., _ aStart: Int32, _ aCount: Int32)

Parameters:

  • aArray:
  • aStart:
  • aCount:

constructor (int)

 

constructor(aSize: int)

 

Slice<T>(int aSize)

 

init(_ aSize: int)

Parameters:

  • aSize:

constructor (int, int)

 

constructor(aSize: int; aCap: int)

 

Slice<T>(int aSize, int aCap)

 

init(_ aSize: int, _ aCap: int)

Parameters:

  • aSize:
  • aCap:

constructor (int, int64)

 

constructor(aSize: int; aCap: int64)

 

Slice<T>(int aSize, int64 aCap)

 

init(_ aSize: int, _ aCap: int64)

Parameters:

  • aSize:
  • aCap:

constructor (int64)

 

constructor(aSize: int64)

 

Slice<T>(int64 aSize)

 

init(_ aSize: int64)

Parameters:

  • aSize:

constructor (int64, int)

 

constructor(aSize: int64; aCap: int)

 

Slice<T>(int64 aSize, int aCap)

 

init(_ aSize: int64, _ aCap: int)

Parameters:

  • aSize:
  • aCap:

constructor (int64, int64)

 

constructor(aSize: int64; aCap: int64)

 

Slice<T>(int64 aSize, int64 aCap)

 

init(_ aSize: int64, _ aCap: int64)

Parameters:

  • aSize:
  • aCap:

constructor (Slice<T>)

 

constructor(value: Slice<T>)

 

Slice<T>(Slice<T> value)

 

init(_ value: Slice<T>)

Parameters:

  • value:

Add

 

method Add(a: Int32; b: T)

 

void Add(Int32 a, T b)

 

func Add(_ a: Int32, _ b: T)

 

func Add(a Int32, b T)

Parameters:

  • a:
  • b:

Assign (array of T)

 

method Assign(aOrg: array of T)

 

void Assign(T[] aOrg)

 

func Assign(_ aOrg: T...)

 

func Assign(aOrg []T)

Parameters:

  • aOrg:

Assign (Slice<T>)

 

method Assign(aOrg: Slice<T>)

 

void Assign(Slice<T> aOrg)

 

func Assign(_ aOrg: Slice<T>)

 

func Assign(aOrg Slice<T>)

Parameters:

  • aOrg:

GetSequence

 

// .NET, Island, macOS
method GetSequence: IEnumerable<tuple of (Int32, T)>
// .NET Standard 2.0
method GetSequence: IEnumerable<ValueTuple<Int32, T>>

 

// .NET, Island, macOS
IEnumerable<(Int32, T)> GetSequence()
// .NET Standard 2.0
IEnumerable<ValueTuple<Int32, T>> GetSequence()

 

// .NET, Island, macOS
func GetSequence() -> IEnumerable<(Int32, T)>
// .NET Standard 2.0
func GetSequence() -> IEnumerable<ValueTuple<Int32, T>>

 

// .NET, Island, macOS
func GetSequence() IEnumerable<tuple of (Int32, T)>
// .NET Standard 2.0
func GetSequence() IEnumerable<ValueTuple<Int32, T>>

Grow

 

method Grow(aNewLen: Int32): Slice<T>

 

Slice<T> Grow(Int32 aNewLen)

 

func Grow(_ aNewLen: Int32) -> Slice<T>

 

func Grow(aNewLen Int32) Slice<T>

Parameters:

  • aNewLen:

Len

 

method Len: int

 

int Len()

 

func Len() -> int

 

func Len() int

Less

 

method Less(a: int; b: int): bool

 

bool Less(int a, int b)

 

func Less(_ a: int, _ b: int) -> bool

 

func Less(a int, b int) bool

Parameters:

  • a:
  • b:

Swap

 

method Swap(a: int; b: int)

 

void Swap(int a, int b)

 

func Swap(_ a: int, _ b: int)

 

func Swap(a int, b int)

Parameters:

  • a:
  • b:

ToArray

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

func ToArray() []T