Why would map have conditions?
//pseudocode
map(f, ns)
for i in (0 .. ns.length - 1)
f(ns[i]) //pseudocode
map(f, ns)
for i in (0 .. ns.length - 1)
f(ns[i])The key lookup in dict definitely has conditionals, though.
Of course, the guy could get rid of that by just using an 11-element array and addressing directly instead of hashing integers as keys.
And how does the iterator know that it should raise an exception? A conditional.