Add map and filter syntax to loops