Why can't this just but
`ordering.leastOf(input, num).iterator`
?