InputForm[{a, b, c, d, e, f}] gives {a, b, c, d, e, f}
InputForm[Characters["SOMETHING"]] gives {"S", "O", "M", "E", "T", "H", "I", "N", "G"}
But why does not Drop[InputForm[Characters["SOMETHING"]],1] give {"O", "M", "E", "T", "H", "I", "N", "G"}
but gives a InputForm[] and nothing else?
How can I achieve this?
Thank You
When you evaluate
Mathematica internally produces the result
i.e. it’s an expression with
InputFormas a head, which containsListList["S","O","M","E","T","H","I","N","G"]as its first subexpression. You don’t see theInputFormhead when Mathematica displays the expression, because the front end only uses it as a hint as to how the expression should be shown, but it’s still there behind the scenes.Then when you use
Drop[..., 1], it looks at the expression it’s given, picks out the first subexpression, which isList["S","O","M","E","T","H","I","N","G"], and discards it. That leaves justInputForm[].To make an analogy: if you evaluated
you would understand why you’d get an empty list back, right? It’s the same thing going on.