diff --git a/prototype/Doubt/Array.swift b/prototype/Doubt/Array.swift index d9e64eddd..f4c6cf882 100644 --- a/prototype/Doubt/Array.swift +++ b/prototype/Doubt/Array.swift @@ -1,5 +1,5 @@ -extension Array { - static func cons(head: Element, _ tail: Array) -> Array { - return [head] + tail +extension RangeReplaceableCollectionType { + static func cons(head: Generator.Element, _ tail: Self) -> Self { + return [ head ] + tail } }