Repeat: Difference between revisions
Content added Content deleted
LalaithMeren (talk | contribs) (→{{header|Chapel}}: added chapel solution) |
LalaithMeren (talk | contribs) |
||
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 |
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; |