For_each iterator pattern for VDF