Skip to content

Commit b6c914f

Browse files
committed
doc: fix type comment
1 parent 42b850c commit b6c914f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

oslash/list.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313

1414
from .typing import Applicative, Functor, Monad, Monoid
1515

16-
# Type alias for list selector function
17-
# Any: Selector function type varies by usage and cannot be
18-
# statically determined without higher-kinded types
16+
# Type alias for list selector function used in Church encoding
17+
# Returns either the head (T) or tail (List[T]) depending on which selector is passed
1918
type ListSelector[T] = Callable[[T, List[T]], T | List[T]]
2019

2120

0 commit comments

Comments
 (0)