Loops/Increment loop index within loop body: Difference between revisions
Content deleted Content added
→Functional Python: Pruned out a little scaffolding – two unused imports. |
m →Functional Python: Updated output. |
||
Line 3,259:
def go(tpl):
if isPrime(tpl[1]):
print(
return splitArrow(succ)(dbl)(tpl)
else:
Line 3,347:
#
def
'''Integer string with comma-chunked digits.'''
return
Line 3,381:
main()</lang>
{{Out}}
<pre>
2 -> 89
3 -> 179
4 -> 359
5 -> 719
=={{header|Racket}}==
|