InfraRuby Vision delivers solutions for mobile and web applications.
You can try InfraRuby live in your browser!
Try the InfraRuby statically typed Ruby compiler live in your browser. Try our examples or write your own code.
Follow @InfraRuby on Twitter for news and updates.

Enumerable

module Enumerable<E: java.lang.Object?> extends java.lang.Iterable<E>

abstract methods

  • each
    &{E -> void} -> void

instance methods

  • all?
    -> boolean
    &{E -> boolean} -> boolean
  • any?
    -> boolean
    &{E -> boolean} -> boolean
  • count
    java.lang.Object? -> Integer
    &{E -> boolean} -> Integer
  • drop
    int32 -> Array<E>
    Integer -> Array<E>
  • drop_while
    &{E -> boolean} -> Array<E>
  • each_cons
    int32, &{Array<E> -> void} -> void
    Integer, &{Array<E> -> void} -> void
  • each_slice
    int32, &{Array<E> -> void} -> void
    Integer, &{Array<E> -> void} -> void
  • each_with_index
    &{E, Integer -> void} -> void
  • each_with_object
    <O: java.lang.Object?> O, &{E, O -> void} -> void
  • find
    &{E -> boolean} -> E?
  • find_all
    &{E -> boolean} -> Array<E>
  • find_index
    &{E -> boolean} -> Integer?
  • first
    -> E?
  • first!
    -> E
  • grep
    Regexp -> Array<E>
    <T: java.lang.Object?> Regexp, &{E -> T} -> Array<T>
  • group_by
    <T: java.lang.Object?> &{E -> T} -> Hash<T, Array<E>>
  • inject
    <T: java.lang.Object?> T, &{T, E -> T} -> T
  • map
    <T: java.lang.Object?> &{E -> T} -> Array<T>
  • max
    -> E?
    &{E, E -> Integer} -> E?
  • max_by
    <T: java.lang.Comparable<*/T>> &{E -> T} -> E?
  • member?
    java.lang.Object? -> boolean
  • min
    -> E?
    &{E, E -> Integer} -> E?
  • min_by
    <T: java.lang.Comparable<*/T>> &{E -> T} -> E?
  • minmax
    -> [E?, E?]
    &{E, E -> Integer} -> [E?, E?]
  • minmax_by
    <T: java.lang.Comparable<*/T>> &{E -> T} -> [E?, E?]
  • none?
    -> boolean
    &{E -> boolean} -> boolean
  • one?
    -> boolean
    &{E -> boolean} -> boolean
  • partition
    &{E -> boolean} -> [Array<E>, Array<E>]
  • reject
    &{E -> boolean} -> Array<E>
  • select
    &{E -> boolean} -> Array<E>
  • take
    int32 -> Array<E>
    Integer -> Array<E>
  • take_while
    &{E -> boolean} -> Array<E>
  • to_a
    -> Array<E>
  • to_enum
    -> Enumerator<E>
  • to_set
    -> Set<E>
Follow @InfraRuby on Twitter
Copyright © 2011-2017 InfraRuby Vision Limited