Jump to content

Nested function: Difference between revisions

m
→‎{{header|R}}: Syntax highlighting.
m (→‎{{header|R}}: Syntax highlighting.)
Line 1,270:
=={{header|R}}==
This also shows that cat's sep argument is not the same as MakeList's.
<lang rrsplus>MakeList <- function(sep)
{
counter <- 0
Line 1,281:
2. second
3. third</pre>
 
=={{header|Racket}}==
See also [[#Scheme]]; this demonstrates <code>map</code> a higher order function and <code>begin0</code> a form which saves us having to explicitly remember the result.
331

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.