module Glue::SequentialContainer(T)

Overview

Wrapper for an instantiated, sequential container type.

This offers (almost) all read-only methods known from Array. Additionally, there's #<<. Other than that, the container type is not meant to be used for storage, but for data transmission between the C++ and the Crystal world. Don't let that discourage you though.

Included Modules

Defined in:

ext/glue.cr

Instance Method Summary

Instance Method Detail

def <<(value : T) : self #

Adds element at the end of the container.


[View source]
def concat(values : Enumerable(T)) : self #

Adds all elements at the end of the container, retaining their order.


[View source]
def inspect(io) #

[View source]
abstract def push(value : T) #

Adds an element at the end. Implemented by the wrapper.


[View source]
def to_s(io) #

[View source]