Sha256: 0e54718ecd47b661ab4beb9813ccec82f2732da831ea442de2be02b7ad4ed8ed

Contents?: true

Size: 276 Bytes

Versions: 2

Compression:

Stored size: 276 Bytes

Contents

## Array#poke

    require 'facets/array/poke'
    
Put an object on the bottom of the stack (front of the array).

    a = [2,3]
    a.poke(1)
    a.assert == [1,2,3]
    
Or supply an index and #poke works like insert.

    a = [1,3]
    a.poke(2,1)
    a.assert == [1,2,3]

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 demo/core/array/poke.md
facets-3.1.0 demo/core/array/poke.md