Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
skylight / lib / skylight / util / allocation_free.rb
Size: Mime:
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