Deviopath › Swift

Generic Max

Medium · Generics

func maximum<T: Comparable>(_ a: T, _ b: T) -> T. Write it, plus runMax which is already there.

Next: String Word Count