Implemented the in operator in a very simple fashion: It returns nothing.

This commit is contained in:
Dave Halter
2015-01-09 16:05:09 +01:00
parent 53b456dff2
commit 5334f8dbad
3 changed files with 16 additions and 0 deletions

View File

@@ -68,6 +68,19 @@ i += 1
#? int()
x[i]
# -----------------
# in
# -----------------
if 'X' in 'Y':
a = 3
else:
a = ''
# For now don't really check for truth values. So in should return both
# results.
#? str() int()
a
# -----------------
# for flow assignments
# -----------------