# Method __automap__()

Method __automap__

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

Description

  Automap execution function.

Parameter `fun`

  Function to call for each of the mapped arguments.

Parameter `args`

  Arguments for fun. Either

  `Builtin.automap_marker` | Wrapper for an array to loop over. All of the arrays will be looped over in parallel.
  `mixed` | All other arguments will be held constant during the automap, and sent as is to fun.

Note

  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.

Note

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

See also

  Builtin.automap_marker, map()