Zulip Chat Archive
Stream: mathlib4
Topic: List.nextOr
Yury G. Kudryashov (Aug 05 2024 at 00:46):
Currently, we have docs#List.nextOr which should be named List.nextD
according to the current naming convention. We also have List.next
and List.prev
but no List.prevOr
/prevD
.
Yury G. Kudryashov (Aug 05 2024 at 00:47):
Before migrating from get
to getElem
, I'm trying to cleanup API a bit (e.g., some lemmas assume both a ∈ l
and a ∈ x::l
).
Yury G. Kudryashov (Aug 05 2024 at 00:48):
What should I do:
- drop
nextOr
? - rename it to
nextD
? - add
next?
instead?
Yakov Pechersky (Aug 05 2024 at 00:55):
How would you define next
without nextOr
?
Yury G. Kudryashov (Aug 05 2024 at 01:18):
You're right, the only options are nextD
and next?
Last updated: May 02 2025 at 03:31 UTC