                 result = result.sortOn("first");
             }
 
-            return map == null ? result : result.map(map);
+            return callback == null ? result : result.map(callback);
         }
     }
 }


        /**
         * Creates Stream object from iterable object
         * @param object object used as source for a Stream
         * @return created Stream object
         * @example
         * <pre>

         *     //prints ["name1", "name2"]
         * </pre>
         */
        public static function from(object:*, callback:Function = null):Stream
        {
            var result:Stream;
            if (object == null || object === undefined)
