Exemple #1
0
 /**
  * Extract just the values from this iterable.
  *
  * Examples
  *
  *   Crankshaft::Iter(['a' => 97, 'b' => 98, 'c' => 99, 'd' => 100])->values()->to_array()
  *   // => [97, 98, 99, 100]
  *
  * Returns an Iterable whose yielded values will be the values of `$iterable`, and whose keys
  *   will be the integer, starting from 0.
  */
 public function values()
 {
     return Crankshaft::Combine(Crankshaft::Count(), $this);
 }