Van Eck sequence: Difference between revisions
m
→{{header|Uiua}}: Reformat
(Added Uiua solution) |
m (→{{header|Uiua}}: Reformat) |
||
Line 3,708:
=={{header|Uiua}}==
<syntaxhighlight lang="Uiua">
F ← ⊂⟨0◌|+1⟩>⊙(-1⧻),,⊗⊃⊢(↘1). # Generator function (prepends).
⇌⍥F999 [0] # Generate 1000 terms and flip.▼
⊃(&p↙¯)(&p↙∘)10 # Print first and last 10 terms.▼
▲# Generate 1000 terms and flip.
▲# Print first and last 10 terms.
</syntaxhighlight>
{{out}}
|