add index argument to foreach and map
Version 0.0.11