

def isScalar(x):
  return not isinstance(x, (list, tuple))

def isList(x):
  return isinstance(x, (list))

def asString(x):
  return str(x)

def makeDict():
  return {'a': 1.0, 'c': 3.0, 'b': 2.0}

def makeTuple():
  return (1.0, 2.0, 3.0)

def reflect(x):
  return x

def callFunc(f, x):
  return f(x)

@@ -236,16 +236,124 @@
 , 3.0)%0A%0A
+def makeIterator(x):%0A  return iter(x)%0A%0Adef makeGenerator(n):%0A  i = 0%0A  while i %3C n:%0A    yield i%0A    i += 1%0A%0A
 def refl
@@ -402,12 +402,13 @@
 return f(x)%0A
+%0A

test functions for iterators/generators