Sha256: 8dd895941045e6453ccf52475a0c055c6591c1532eff9ee89b81aa3ea3424cf3

Contents?: true

Size: 260 Bytes

Versions: 57

Compression:

Stored size: 260 Bytes

Contents

module Skylight
  module Util
    module AllocationFree
      def array_find(array)
        i = 0

        while i < array.size
          item = array[i]
          return item if yield item
          i += 1
        end

        nil
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 2 rubygems

Version Path
skylight-1.4.0.beta lib/skylight/util/allocation_free.rb
skylight-1.3.1 lib/skylight/util/allocation_free.rb
skylight-1.3.0 lib/skylight/util/allocation_free.rb
skylight-1.2.2 lib/skylight/util/allocation_free.rb
skylight-1.2.1 lib/skylight/util/allocation_free.rb
skylight-1.2.0 lib/skylight/util/allocation_free.rb
skylight-1.1.0 lib/skylight/util/allocation_free.rb
skylight-1.0.1 lib/skylight/util/allocation_free.rb
skylight-1.0.0 lib/skylight/util/allocation_free.rb
skylight-0.10.6 lib/skylight/util/allocation_free.rb
skylight-1.0.0.beta5 lib/skylight/util/allocation_free.rb
skylight-0.10.5 lib/skylight/util/allocation_free.rb
skylight-0.10.4 lib/skylight/util/allocation_free.rb
skylight-1.0.0.beta4 lib/skylight/util/allocation_free.rb
skylight-1.0.0.beta3 lib/skylight/util/allocation_free.rb
skylight-0.10.3 lib/skylight/util/allocation_free.rb
skylight-0.10.2 lib/skylight/util/allocation_free.rb
skylight-1.0.0.beta2 lib/skylight/util/allocation_free.rb
skylight-0.10.0 lib/skylight/util/allocation_free.rb
skylight-0.9.4 lib/skylight/util/allocation_free.rb