Odd word problem: Difference between revisions
Content added Content deleted
m (→Using Closure) |
|||
Line 1,601: | Line 1,601: | ||
a$=key$ |
a$=key$ |
||
if a$ ~"[a-zA-Z]" then { |
if a$ ~"[a-zA-Z]" then { |
||
If state Else state~ : odd~ |
If state Else state~ : odd~ |
||
if state and odd then k$=lambda$ k$, a$->a$+k$() : Continue |
if state and odd then k$=lambda$ k$, a$->a$+k$() : Continue |
||
Print a$; |
Print a$; |
||
} Else { |
} Else { |
||
If state Then state~ |
If state Then state~ |