Euclidean rhythm: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: added an assertion)
m (corected JavaScript and Python headers)
Line 205: Line 205:
</pre>
</pre>


== [[:Category:JavaScript|JavaScript]] ==
=={{header|JavaScript}}==
Copied from [https://mrmr.io/mj/euclid here] and [https://github.com/mnvr/gm1k?tab=readme-ov-file here], under MIT license.<syntaxhighlight lang="javascript">
Copied from [https://mrmr.io/mj/euclid here] and [https://github.com/mnvr/gm1k?tab=readme-ov-file here], under MIT license.<syntaxhighlight lang="javascript">
const E = (k, n) => {
const E = (k, n) => {
Line 459: Line 459:
</pre>
</pre>


== [[Python]] ==
=={{header|Python}}==
{{trans|JavaScript}}<syntaxhighlight lang="python3">
{{trans|JavaScript}}<syntaxhighlight lang="python3">
def E(k, n):
def E(k, n):