Van Eck sequence: Difference between revisions

m
(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.
F ← ⊂⟨0◌|+1⟩>⊙(-1⧻),,⊗⊃⊢(↘1).
⊃(&p↙¯)(&p↙∘)10 # Print first and last 10 terms.
# Generate 1000 terms and flip.
⇌⍥(F)999 [0]
# Print first and last 10 terms.
⊃(&p↙¯10)(&p↙10)
</syntaxhighlight>
{{out}}
62

edits