-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: replace List.enum
and List.enumFrom
with zipWithIndex
#6709
Comments
Not sure. I (as a Haskell user) expect the I could imagine dropping |
Ah, but maybe worth cleaning up whether its called |
Ah, okay, I like |
Do you want more discussion/feedback/thoughts? I’m happy to accept his, and leave the precise choice to you. |
Mostly just writing this as an announcement/warning. :-) This was implemented in #6800. |
Currently we have
List.enum : List α → List (Nat × α)
,List.enumFrom : Nat → List α → List (Nat × α)
, andArray.zipWithIndex : Array α → Array (α × Nat)
.My current intentions are to:
List.enum
toList.zipWithIndex
List
functionsList
andArray
'szipWithIndex
a defaultfrom : Nat := 0
argument that subsumes the functionality ofenumFrom
, and removeList.enumFrom
.The text was updated successfully, but these errors were encountered: