extract_type_arguments library


extractIterableTypeArgument(Iterable iterable, Object extract()) → Object
Given an Iterable, invokes extract, passing the iterable's type argument as the type argument to the generic function. [...]
extractMapTypeArguments(Map map, Object extract()) → Object
Given a Map, invokes extract, passing the map's key and value type arguments as the type arguments to the generic function. [...]