JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

spork/generators/cycle

spork


    function
    /usr/local/lib/janet/spork/generators.janet on line 208, column 1

    (cycle iterable)

    Returns a coroutine that yields `iterable` elements and 
    repetitively loops back to the beginning when finished. If 
    `iterable` is a fiber, cycle cannot loop back to the beginning. 
    Don't pass a fiber to cycle.


0 examplesSign in to add an example
Loading...