Search Results for

    / fm / liveswitch / Stack

    Class: Stack<T>

    fm.liveswitch.Stack

    Type parameters

    Name
    T

    Table of contents

    Constructors

    • constructor

    Properties

    • _depth
    • _list

    Methods

    • getCount
    • getTypeString
    • peek
    • pop
    • push

    Constructors

    constructor

    + new Stack<T>(depth?: number): Stack<T>

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    depth? number

    Returns: Stack<T>

    Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:7

    Properties

    _depth

    • Private _depth: number

    Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:7


    _list

    • Private _list: T[]

    Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:6

    Methods

    getCount

    ▸ getCount(): number

    Returns: number

    Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:31


    getTypeString

    ▸ getTypeString(): string

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:3


    peek

    ▸ peek(): T

    Returns: T

    Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:25


    pop

    ▸ pop(): T

    Returns: T

    Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:22


    push

    ▸ push(o: T): void

    Parameters:

    Name Type
    o T

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:16

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.14.6