Concept Flow - Closures in array functions
Define array
Define closure function
Pass closure to array function
Array function calls closure on each element
Closure processes element and returns result
Array function collects results
Output final array
This flow shows how a closure (anonymous function) is defined and passed to an array function, which calls it on each element and collects the results.