Is it possible to suppress the output of a register? For example, I am using getchar()
to 'consume' a character, but I don't need it to return anything. I suppose I could add in a hackish ternary operator to do this, such as:
=getchar()?'':''
But I was wondering if there was a cleaner or better way to do this?
getchar()[-1]
is shorter.-1
work differently than for example it does in python?