The easy thing to do is to write a loop.