 			sort { (_,_) in arc4random() < arc4random() }
 		}
 	}
-
+	
 }
 
 
 // MARK: - Methods (Equatable)
 public extension Array where Element: Equatable {
-
-	/// SwifterSwift: Check if array contains an element.
-	///
-	/// - Parameter element: element to check.
-	/// - Returns: true if array contains the given item.
-	public func contains(_ element: Element) -> Bool {
-		return self.contains(where: { $0 == element })
-	}
-
+	
 	/// SwifterSwift: Check if array contains an array of elements.
 	///
 	/// - Parameter elements: array of elements to check.

		}
		return arr
	}

}


// MARK: - Properties (Integer)
public extension Collection where Iterator.Element == Int, Index == Int {

	/// SwifterSwift: Average of all elements in array.
	public var average: Double {
		// http://stackoverflow.com/questions/28288148/making-my-function-calculate-average-of-array-swift
		return isEmpty ? 0 : Double(reduce(0, +)) / Double(endIndex-startIndex)
	}

}


// MARK: - Properties (Integer)
public extension Array where Element: Integer {

	/// SwifterSwift: Sum of all elements in array.
	public var sum: Element {
		// http://stackoverflow.com/questions/28288148/making-my-function-calculate-average-of-array-swift
		return reduce(0, +)
	}

}


// MARK: - Properties (FloatingPoint)
public extension Array where Element: FloatingPoint {

	/// SwifterSwift: Average of all elements in array.
	public var average: Element {
		// http://stackoverflow.com/questions/28288148/making-my-function-calculate-average-of-array-swift
		return isEmpty ? 0 : reduce(0, +) / Element(count)
	}

	/// SwifterSwift: Sum of all elements in array.
	public var sum: Element {
		// http://stackoverflow.com/questions/28288148/making-my-function-calculate-average-of-array-swift
		return reduce(0, +)
	}

}


// MARK: - Properties (Equatable)
public extension Array where Element: Equatable {

	/// SwifterSwift: Array with all duplicates removed from it.
	public var withoutDuplicates: [Element] {
		var result: [Element] = []
		for value in self {
			if result.contains(where: { $0 == value }) {
				result.append(value)
			}
		}
		return result
	}

}


// MARK: - Methods
public extension Array {

	/// SwifterSwift: Element at the given index if it exists.
	///
	/// - Parameter index: index of element.

		}
		return nil
	}
	
	/// SwifterSwift: Last index of element in array.
	///
	/// - Parameter item: item to check.
