Question: How to extract the first character of a name?

 
> 

restart;

Let x be some name:

> 

x := asdf;

asdf

I wish to make a new name, y, whose value is the first character in x:

> 

convert(x, string):
y := convert(%[1], name);

a

That works but seems too convoluted.  Is there a better way of doing that?

Please Wait...