mixins/single_enumerable_container |
module SingleEnumerableContainer |
Public Methods |
Determine the number of non-nil items in the container
Returns: the number of non-nil items found
Determine if a particular value is in a container.
TODO: Does this belong in this mixin? Could a container have O(1) access on values and still be single-enumerable?
Returns: true if the value was found, false otherwise.