from utils.sx_web import * from utils.sx_time import * from utils.sx_image import * def flat_map(f, xs): ys = [] for x in xs: ys.extend(f(x)) return ys