Timeline for What is the right way to remove head of a number? [duplicate]
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 9, 2015 at 19:22 | history | closed |
Kuba CommunityBot |
Duplicate of How to completely delete the head of a function expression | |
May 9, 2015 at 18:36 | comment | added | Yves Klett |
Identity @@ {1} or Sequence @@ {1} depending on what you want to achieve... but the others seems transparent enough, too.
|
|
May 9, 2015 at 18:31 | comment | added | Fred Simons |
Or with pattern matching: expr /. _[x__] :> x
|
|
May 9, 2015 at 18:26 | comment | added | Kuba |
I would do ## & @@ # & , so the same what you've done but more general, your way fails for {1, 2}.
|
|
May 9, 2015 at 18:22 | history | asked | JeffDror | CC BY-SA 3.0 |