Search notes:

Common first class function: map

map takes as its arguments a function and a list. It then applies the function to each element of the list and returns the list of the return values of the function: map(f, [v1, v2, v3]) == [f(v1), f(v2), f(v3)]

See also

Perl's, Python's and Vim script's implementation of map, the roughly equivalent R function sapply() and PowerShell's forEach object cmdLet.
MapReduce
The Powershell cmdlet forEach-object.
The List.Transform function of Power Query/Formula-M

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/science/...', 1758190503, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/science/computer/Programming-paradigm/Functional-programming/First-class-function/map(45): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78