python Generic

Creator
Creator
Seonglae Cho
Created
Created
2020 Sep 11 12:12
Editor
Edited
Edited
2021 Jul 23 8:45
Refs
Refs
T = TypeVar('T') # Declare type variable def first(l: Sequence[T]) -> T: # Generic function return l[0]
 
 
 

Recommendations