UNPKG

nowjs-core

Version:

NowCanDo Javascript Core [nowjs-core] is a library written by TypeScript code maintains under Apache 2.0 licence

22 lines (21 loc) 647 B
import { IEnumerable } from '../core/IEnumerable'; import { IParallelQueryable } from '../linq/IParallelQueryable'; import { IQueryable } from '../linq/IQuerable'; import { ICollection } from './ICollection'; import { IList } from './IList'; export interface IStack<T> extends IEnumerable<T> { contains(item: T): boolean; size: number; clear(): boolean; push(item: T): boolean; push(...items: T[]): boolean; pop(): T; peek(): T; toArray(): T[]; toCollection(): ICollection<T>; toList(): IList<T>; toSet(): Set<T>; linq(): IQueryable<T>; plinq(): IParallelQueryable<T>; isEmpty(): boolean; }