이 레슨은 당분간 영어로 제공돼요.
One function, every type
You need first(list) for posts, scores and users. Writing three copies is silly, and any throws the types away. Generics give you a third option: a function with a type parameter.
이 레슨은 당분간 영어로 제공돼요.
You need first(list) for posts, scores and users. Writing three copies is silly, and any throws the types away. Generics give you a third option: a function with a type parameter.