Skip to content

Conversation

@yangzai
Copy link
Contributor

@yangzai yangzai commented Nov 27, 2025

Relates to #20591.

let
indexed = zip xs [1..length xs]
comp x y = cmp (fst x) (fst y)
indexed = mapWithIndex (,) xs
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New indices are off by 1 and swapped, but these are inconsequential.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant