Skip to content

Instantly share code, notes, and snippets.

@kunigami

kunigami/first.py

Created Dec 26, 2019
Embed
What would you like to do?
def first(xs: List[int]) -> Optional[int]:
if len(xs) == 0:
return None
return xs[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.