Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/easyts/container/mod.ts>ListElement

js library written with ts, use select and chan like golang in js.
Latest
class ListElement
import { ListElement } from "https://deno.land/x/easyts@0.1.3/container/mod.ts";

linked list element

Constructors

new
private
ListElement(list?: List<T>, data?: T)

Prohibit third-party instantiation

Properties

private
optional
list_: List<T>

which list the element is in

optional
next_: ListElement<T>
optional
prev_: ListElement<T>

Methods

_list(): List<T> | undefined
next(): ListElement<T> | undefined

return next element

prev(): ListElement<T> | undefined

return previous element

Static Methods

make<T>(list?: List<T>, data?: T): ListElement<T>