Farey sequence: Difference between revisions
m
→{{header|langur}}
Langurmonkey (talk | contribs) (→{{header|langur}}: edits for langur 0.13) |
Langurmonkey (talk | contribs) |
||
Line 2,160:
{{works with|langur|0.13}}
0.13 requires impure functions to be declared as impure. The .testFarey() function is impure because it uses writeln(). Of course, this could be written differently.
<syntaxhighlight lang="langur">val .farey = f(.n) {
|