     ["r", "a", "d"].each (letter, index) ->
       word += letter
       indices.push(index)
-    
+
     # => ["r", "a", "d"]
-    
+
     word
     # => "rad"
-    
+
     indices
     # => [0, 1, 2]
 

@methodOf Array#
@param {Function} [fn] An optional funtion used to evaluate each element to calculate its value for determining extremes.
@returns {Object} {min: minElement, max: maxElement}
### 
Array::extremes = (fn) ->
  fn ||= (n) -> n



    [evens, odds] = [1, 2, 3, 4].partition (n) ->
      n.even()

    evens
    # => [2, 4]

    odds
    # => [1, 3]

