Loops/Wrong ranges: Difference between revisions
Content added Content deleted
(Add Factor example) |
m (→{{header|Factor}}: remove unneeded vocabulary) |
||
Line 126: | Line 126: | ||
=={{header|Factor}}== |
=={{header|Factor}}== |
||
<code><range></code> divides by the step value, so a step of 0 causes a divide by zero exception. For the purpose of getting through all the examples, the exceptions are dropped and execution continues, which in general should be avoided. |
<code><range></code> divides by the step value, so a step of 0 causes a divide by zero exception. For the purpose of getting through all the examples, the exceptions are dropped and execution continues, which in general should be avoided. |
||
<lang factor>USING: continuations formatting |
<lang factor>USING: continuations formatting io kernel math.ranges |
||
prettyprint sequences ; |
prettyprint sequences ; |
||