(map-syntax f v)
  f: a callable
  v: any type
  returns any type
F

Maps a function over a collection, preserving syntax information.

Arrays parsed from a file have hidden syntax information which describes the filename and line number from which they were parsed. The usual map function discards this information.

When v is an array or table, map-syntax returns a cloned array or table, with the same syntax information as v, where each element, key or value has been mapped using f. Otherwise, v is returned unchanged.

clear!
arr