[WIP] nd::foreach prototype function