I often have a number for which I want to remove its head, e.g. {1}. I know of two ways to remove the head:
{1}[[1]]
# & @@ {1}
Neither of these methods seem particularly transparent to me. What is the "right" way to do this common transformation?
## & @@ # &
, so the same what you've done but more general, your way fails for {1, 2}. $\endgroup$expr /. _[x__] :> x
$\endgroup$Identity @@ {1}
orSequence @@ {1}
depending on what you want to achieve... but the others seems transparent enough, too. $\endgroup$