def schema_concat(exprs):
 new_fields = []
 for c in exprs:
  schema = c.schema[0]
  if isinstance(schema, Record):
   new_fields.extend(schema.fields)
  elif isinstance(schema, (Unit, Option)):
   new_fields.append((c._name, schema))
  else:
   raise TypeError(('All schemas must have Record or Unit shape.\nGot %s' % schema))
 return dshape(Record(new_fields))

def schema_concat ( exprs ) : new_fields = [ ] for c in exprs : schema = c . schema [ 0 ] if isinstance ( schema , Record ) : new_fields . extend ( schema . fields ) elif isinstance ( schema , ( Unit , Option ) ) : new_fields . append ( ( c . _name , schema ) ) else : raise TypeError ( ( 'All schemas must have Record or Unit shape.\nGot %s' % schema ) ) return dshape ( Record ( new_fields ) )
concatenate schemas together .