0001 infix operator |> { associativity left } 0002 func |> <T, U> (x: T, f: T -> U) -> U { 0003 return f(x) 0004 } 0005 0006 func count<T:CollectionType>(collection: T) -> T.Index.Distance { 0007 return collection.count 0008 } 0009 0010 func count(string: String) -> String.Index.Distance { 0011 return string.characters.count 0012 }
Parser.swift:512 |> count