I know that I can convert an expression to list by
List @@ expr
But this does not work if expr
contains only one termis atomic, e.g.,
List @@ 1
will give you 1
instead of {1}
. Of course I can check the length of expr
first. But I wonder if there is simpler way to do this.