def map_segments(func, neurites, neurite_type):
neurite_filter = is_type(neurite_type)<EOL>return [<EOL>s for ss in iter_sections(neurites, neurite_filter=neurite_filter) for s in func(ss)<EOL>]<EOL>
Map `func` to all the segments in a collection of neurites

        `func` accepts a section and returns list of values corresponding to each segment.