->map()

Example:


$arr = Data(array(
  array(
    'id' => 1,
    'title' => 'Canvas'
  ),
  array(
    'id' => 2,
    'title' => 'CSS transitions'
  )
));

echo $arr->map(function($row){
  return $row->title;
});

/** RESULT:

Canvas
CSS transitions

*/

echo $arr->map(function($row){
  return $row->title;
})->join(', ');

/** RESULT:

Canvas, CSS transitions

*/