# Path: generators/started.py
# @strict_globals(wraps=wraps)
# def started(generator_function):
#     """ starts a generator when created """
#     @wraps(generator_function)
#     def wrapper(*args, **kwargs):
#         g = generator_function(*args, **kwargs)
#         next(g)
#         return g
#     return wrapper


from .started import started
from strict_functions import noglobals
# -*- coding: utf-8 -*-
# @Author: ckochman
# @Date:   2017-05-04 16:45:16
# @Last Modified by:   Cody Kochmann
# @Last Modified time: 2017-12-09 10:37:37



@started
@noglobals
def counter():
    "generator that holds a sum"
    c = 0
    while 1:
        yield c
        c += 1



# Path: generators/started.py
# @strict_globals(wraps=wraps)
# def started(generator_function):
#     """ starts a generator when created """
#     @wraps(generator_function)
#     def wrapper(*args, **kwargs):
#         g = generator_function(*args, **kwargs)
#         next(g)
#         return g
#     return wrapper


# Path: generators/counter.py
from .started import started
from strict_functions import noglobals

# -*- coding: utf-8 -*-
# @Author: ckochman
# @Date:   2017-05-04 16:45:16
# @Last Modified by:   Cody Kochmann
# @Last Modified time: 2017-12-09 10:37:37



@started
@noglobals
def counter():
    "generator that holds a sum"
    c = 0
    while 1:
        yield c
        c += 1



del started