Added free rawValue() function.
This commit is contained in:
parent
71c8092cac
commit
e4339ba809
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue