Toggle

Easy

Prompt

Write a function createToggle that takes any number of values and returns a function. Each time the returned function is called, it gives the next value in sequence, cycling back to the beginning after the last one.