abstract class Cl::DS::LinkedList(I)

Included Modules

Direct Known Subclasses

Defined in:

data_structures/linked_list.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.build(&) #

[View source]

Instance Method Detail

def each(&) #
Description copied from module Iterator(I)

Calls the given block once for each element, passing that element as a parameter.

iter = ["a", "b", "c"].each
iter.each { |x| print x, " " } # Prints "a b c"

[View source]
def empty? : Bool #
Description copied from module Enumerable(I)

Returns true if self is empty, false otherwise.

([] of Int32).empty? # => true
([1]).empty?         # => false

[View source]
def next : I | Iterator::Stop #
Description copied from module Iterator(I)

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.


[View source]
def next? #

[View source]
def peak : I | Nil #

[View source]
abstract def push(item : I) #

[View source]