## ŒAF Atomic Function

The monadic function ŒAF is used to convert characters into integers and vice versa. If the right argument is a character array, the result is an integer array of the same shape, with each element being the position in ŒAV of the corresponding character. If the right argument is an integer array, the result is a character array of the same shape, with each element being the character at the corresponding position in ŒAV.

Exceptionally for an APL function it is origin independent, always assuming origin 0. It is the same as ŒAV¼ or ŒAV[..] (in origin 0). Integer arguments must be in the range 0 to 255 and the right argument must always be a simple array.

                 ŒAF 'LEVEL II'
           108 101 118 101 108 32 105 105
                 ŒAF 108 101 118 101 108 32 105 105
           LEVEL II

Topic: APLX Help : Help on APL language : System Functions & Variables : ŒAF Atomic Function

[ Previous | Next | Contents | Index ]