Added yield statement in closure, such that closures implicitly return
iterables in cases where one or more yield statements are contained in
them.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>