Method __automap__()

Method __automap__

array __automap__(function(:void) fun, mixed ... args)


Automap execution function.

Parameter fun

Function to call for each of the mapped arguments.

Parameter args

Arguments for fun. Either


Wrapper for an array to loop over. All of the arrays will be looped over in parallel.


All other arguments will be held constant during the automap, and sent as is to fun.


This function is used by the compiler to implement the automap syntax, and should in normal circumstances never be used directly.

It may however show up during module dumping and in backtraces.


It is an error not to have any Builtin.automap_markers in args.

See also

Builtin.automap_marker, map()