Skip to content
Subhajit Sahu edited this page Mar 25, 2021 · 6 revisions

Checks if ith value is true. 📰 📘


select(i, a, b, ...)
# i: index
# a: 1st boolean
# b: 2nd boolean
from extra_boolean import select


select(0, True, False)
# True            ^

select(1, True, False)
# False                  ^

select(1, True, True, False, False)
# True                  ^

select(2, True, True, False, False)
# False                        ^


References

Clone this wiki locally