 
 import Foundation
 
-class $ {
+class Dollar {
     
     //  ________  ___  ___  ________  ___  ________
     // |\   ____\|\  \|\  \|\   __  \|\  \|\   ___  \

    ///
    /// :param array The array to wrap.
    /// :return The wrapper object.
    func each(function: (AnyObject) -> ()) -> $ {
        for elem : AnyObject in self.resultArray {
            function(elem)
        }

    ///
    /// :return First element from the array.
    func first() -> AnyObject? {
        return Dollar.first(self.resultArray)
    }
    
    /// Flattens nested array.
    ///
    /// :return The wrapper object.
    func flatten() -> Self {
        self.resultArray = Dollar.flatten(self.resultArray)
        return self
    }
    
    /// Keeps all the elements except last one.
    ///
    /// :return The wrapper object.
    func initial() -> Self {
        return self.initial(1)
    }
    
