class_docstr: A class for partitioning a sequence using a map.
code: def concatenate(self, listOfPartitions):
      testObject = listOfPartitions[0]
      # First see if we have a known array type
      if is_array(testObject):
          return numpy.concatenate(listOfPartitions)
      # Next try for Python sequence types
      if isinstance(testObject, (list, tuple)):
          return list(chain.from_iterable(listOfPartitions))
      # If we have scalars, just return listOfPartitions
      return listOfPartitions
  
file_path: ipyparallel/ipyparallel/client/map.py
imports: import sys
  from itertools import chain, islice
label_desc: Use image node_id 3 for calling the Map obj's underlying member method code with example usage: obj.concatenate(listOfPartitions) and returns: listOfPartitions, numpy, list