Anonymous user
Farey sequence: Difference between revisions
m
→{{header|Common Lisp}}: flagged as needing improvement.
m (→{{header|Common Lisp}}: flagged as needing improvement.) |
|||
Line 309:
=={{header|Common Lisp}}==
{{improve|Common Lisp| <br><br> The output for the first and last term (as per the task's requirement)
<br> is to show the first term as <big>'''0/1'''</big>,
<br> and to show the last term as <big>'''1/1'''</big>. <br><br> }}
The common lisp version of the code is taken from the scala version with some modifications:
<lang lisp>(defun farey (n)
Line 355 ⟶ 360:
NIL
</pre>
<math>Insert formula here</math>
=={{header|Crystal}}==
|