Hacker News new | past | comments | ask | show | jobs | submit login

That wouldn't work for the even parity case.

"(x in odds) == expect_odd" gives the intended behaviour and I think is easier to read as well.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: