Skip to content

common helper function "head" type signature is incomplete #78

@loulecrivain

Description

@loulecrivain
# FIXME: should be head[T](l: list[T]) -> Optional[T]
def head(l):
    return None if not l else l[0]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions