Pass view to function

function bar(x)
  # x is the view
end

This auto-specializes on the type so there’s no performance left behind here.

2 Likes