Vector to array
added todo
Explicit lambda captures