Added free rawValue() function.

This commit is contained in:
Wolf McNally 2018-11-29 16:37:01 -08:00
parent 71c8092cac
commit e4339ba809
1 changed files with 4 additions and 0 deletions

View File

@ -85,3 +85,7 @@ public func joined(separator: String) -> (_ s: [String]) -> String {
public func joined(_ s: [String]) -> String {
return s |> joined(separator: "")
}
public func rawValue<T: RawRepresentable>(_ t: T) -> T.RawValue {
return t.rawValue
}