code: def iflatten(seq, isSeq=isSeq):
      r
      for elt in seq:
          if isSeq(elt):
              for x in iflatten(elt, isSeq):
                  yield x
          else:
              yield elt
docs: r"""Like `flatten` but lazy.