# File lib/ruote/exp/fe_concurrent_iterator.rb, line 201
    def add_branches(list)

      if h.times_iterator && list.size == 1

        count = (list.first.to_i rescue nil)

        list = (h.list_size + 0...h.list_size + count) if count
      end

      list.each do |val|

        h.list_size += 1

        workitem = Ruote.fulldup(h.applied_workitem)

        variables = { 'ii' => h.list_size - 1 }

        if h.to_v
          variables[h.to_v] = val
        else #if to_f
          workitem['fields'][h.to_f] = val
        end

        expid, subtree = if tree_children.size > 1
          [ h.fei['expid'], [ 'sequence', {}, tree_children ] ]
        else
          [ "#{h.fei['expid']}_0", tree_children[0] ]
        end

        launch_sub(
          expid,
          subtree,
          :workitem => workitem,
          :variables => variables,
          :child_id => h.list_size - 1)
      end
    end