Unfortunately, this will make things extremely slow. Anonymous functions passed as arguments have a big overhead.