Repeat: Difference between revisions

Content added Content deleted
(→‎{{header|Chapel}}: added chapel solution)
Line 710: Line 710:
</syntaxhighlight>
</syntaxhighlight>


Example of passing function which takes arguments. Chapel does not allow functions with generic arguments to be passed. First-class functions are in seemingly under-documentated state.
Example of passing function which takes arguments. Chapel does not allow functions with generic arguments to be passed. First-class functions are still in development: https://chapel-lang.org/docs/technotes/firstClassProcedures.html

<syntaxhighlight lang="chapel">
<syntaxhighlight lang="chapel">
config const n = 5;
config const n = 5;