Last item of a list

last x    last[x]

Where x is a list or dictionary, returns its last item; otherwise x.

q)last til 10
9
q)last `a`b`c!1 2 3
3
q)last 42
42