We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42b850c commit b6c914fCopy full SHA for b6c914f
oslash/list.py
@@ -13,9 +13,8 @@
13
14
from .typing import Applicative, Functor, Monad, Monoid
15
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
+# Type alias for list selector function used in Church encoding
+# Returns either the head (T) or tail (List[T]) depending on which selector is passed
19
type ListSelector[T] = Callable[[T, List[T]], T | List[T]]
20
21
0 commit comments