I know that the new Objective-C lightweight generics supports the declaration of generic classes (classes parameterized with a type parameter):
@interface Foo<ObjectType>
However, does it also support "generic methods"? i.e. methods which declare a type parameter that is used only for the method (not from the class), to tie together different parameter types and/or return types. For example, maybe something like this (hypothetical code):
- <T> (NSArray<T> *)brandNewArrayFromConcatenationOf:(NSArray<T> *)firstArray and:(NSArray<T> *)secondArray;
The T allows the compiler to type-check that the result is an array of the same element type as the input arrays.