Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What the code in the article is doing is:

Given an iterable of pairs, sum the first elements of the pairs for which the first element of the pair is odd and the second element is truthy.

What the code you're suggesting does is, to be polite, unrelated.



and no sane person would write it that way. whatever it is that its trying to do.

i agree that i misinterpreted the codes intention.




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

Search: