20,741
edits
Line 66: | Line 66: | ||
== Anonymous function arguments == | == Anonymous function arguments == | ||
In Nasal, arguments are by default implicitly passed in the "arg" array, not unlike perl. To understand how this works, you should probably first read up on Nasal vectors, which is just a fancy word for a list of things, that can be individually addressed by appending an index number | In Nasal, arguments are by default implicitly passed in the "arg" array, not unlike perl. To understand how this works, you should probably first read up on Nasal vectors, which is just a fancy word for a list of things, that can be individually addressed by appending an index number in square brackets: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> |