How to concatenate strings and variables to render data

Hi i’m trying to display data based on a page parameter, but struggling to join them together to render the correct data tag which in this example should be .Site.Data.contact.subTypeExample.email. Print seems to correctly join them together but it prints it as a string instead of rendering the data value. Is there a correct way of doing this, apologise if this is simple stuff.

 {{$first := ".Site.Data.contact."}}
 {{$type := $.Param "subType"}}
 {{$last := ".email"}}
 {{$all :=  print $first $type $last}}
 {{ $all }}

See delimit | Hugo and you might need slice | Hugo as well.

Discovered index seems to do what I’m after which is to pass a parameter to return the relevant data:

{{(index .Site.Data.Contact .Params.subType).email}}