def strseq(object, convert, join=joinseq):
 if (type(object) in (list, tuple)):
  return join(map((lambda o, c=convert, j=join: strseq(o, c, j)), object))
 else:
  return convert(object)

def strseq ( object , convert , join = joinseq ) : if ( type ( object ) in ( list , tuple ) ) : return join ( map ( ( lambda o , c = convert , j = join : strseq ( o , c , j ) ) , object ) ) else : return convert ( object )
recursively walk a sequence .