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
- Indexable(T)
Defined in:
ext/glue.crInstance Method Summary
-
#<<(value : T) : self
Adds element at the end of the container.
-
#concat(values : Enumerable(T)) : self
Adds all elements at the end of the container, retaining their order.
- #inspect(io)
-
#push(value : T)
Adds an element at the end.
- #to_s(io)
Instance Method Detail
def concat(values : Enumerable(T)) : self
#
Adds all elements at the end of the container, retaining their order.