Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hultner
· 5y ago · 0 comments
Where? I don't see anything in that code relying on that unless I'm Sunday blind.
Comments
[–]
iezepov
5y ago
`results[predicate(item)]` here they get the first and the second elements of a tuple. Essentially it’s `results[False]` and `results[True]`
[–]
hultner
OP
5y ago
Oh, that's obvious now. Must be that Sunday night blindness.
[–]
NegativeLatency
5y ago
Results has 2 elements indexed by 0 and 1 (it’s a tuple not a dict)