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}. – Kuba May 09 '15 at 18:26expr /. _[x__] :> x– Fred Simons May 09 '15 at 18:31Identity @@ {1}orSequence @@ {1}depending on what you want to achieve... but the others seems transparent enough, too. – Yves Klett May 09 '15 at 18:36