Skip to content

Error with api.Select in a loop #833

Answered by ivokub
jeljelih asked this question in Q&A
Sep 14, 2023 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Cmp returns either -1, 0 or 1 depending if x < y, x == y or x > y, but select assumes that input is either 0 or 1.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@jeljelih
Comment options

@ivokub
Comment options

@jeljelih
Comment options

@ivokub
Comment options

@aybehrouz
Comment options

Answer selected by jeljelih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants