Skip to main content
Commonmark migration
Source Link

#MATL, 5 bytes

MATL, 5 bytes

YNVH)

Try it Online

Explanation

YN      % Creates a NaN value (not a number)
V       % Convert it to a string
H)      % Grab the second letter ('a')
        % Implicitly display the result

My original answer was the straight forward approach using the pre-defined literal lY2 which yields 'A'...'Z' and then selecting the first element, 'A'.

lY2l)

#MATL, 5 bytes

YNVH)

Try it Online

Explanation

YN      % Creates a NaN value (not a number)
V       % Convert it to a string
H)      % Grab the second letter ('a')
        % Implicitly display the result

My original answer was the straight forward approach using the pre-defined literal lY2 which yields 'A'...'Z' and then selecting the first element, 'A'.

lY2l)

MATL, 5 bytes

YNVH)

Try it Online

Explanation

YN      % Creates a NaN value (not a number)
V       % Convert it to a string
H)      % Grab the second letter ('a')
        % Implicitly display the result

My original answer was the straight forward approach using the pre-defined literal lY2 which yields 'A'...'Z' and then selecting the first element, 'A'.

lY2l)
added 106 characters in body
Source Link
Suever
  • 11.2k
  • 1
  • 23
  • 52

#MATL, 5 bytes

YNVH)

Try it Online

Explanation

YN      % Creates a NaN value (not a number)
V       % Convert it to a string
H)      % Grab the second letter ('a')
        % Implicitly display the result

My original answer was the straight forward approach using the pre-defined literal lY2 which yields 'A'...'Z' and then selecting the first element, 'A'.

lY2l)

#MATL, 5 bytes

YNVH)

Try it Online

Explanation

YN      % Creates a NaN value (not a number)
V       % Convert it to a string
H)      % Grab the second letter ('a')
        % Implicitly display the result

My original answer was the straight forward approach

lY2l)

#MATL, 5 bytes

YNVH)

Try it Online

Explanation

YN      % Creates a NaN value (not a number)
V       % Convert it to a string
H)      % Grab the second letter ('a')
        % Implicitly display the result

My original answer was the straight forward approach using the pre-defined literal lY2 which yields 'A'...'Z' and then selecting the first element, 'A'.

lY2l)
added 15 characters in body
Source Link
Suever
  • 11.2k
  • 1
  • 23
  • 52

#MATL, 5 bytes

lY2lYNVH)

Try it OnlineTry it Online

Explanation

lY2YN      % Pre-definedCreates literala whichNaN containsvalue the(not lettersa ['A'number)
V ... 'Z']     % Convert it to a string
lH)      % Grab just the firstsecond valueletter ('a')
        % Implicitly display the result

My original answer was the straight forward approach

lY2l)

#MATL, 5 bytes

lY2l)

Try it Online

Explanation

lY2     % Pre-defined literal which contains the letters ['A' ... 'Z']
l)      % Grab just the first value
        % Implicitly display the result

#MATL, 5 bytes

YNVH)

Try it Online

Explanation

YN      % Creates a NaN value (not a number)
V       % Convert it to a string
H)      % Grab the second letter ('a')
        % Implicitly display the result

My original answer was the straight forward approach

lY2l)
deleted 9 characters in body
Source Link
Suever
  • 11.2k
  • 1
  • 23
  • 52
Loading
added 178 characters in body
Source Link
Suever
  • 11.2k
  • 1
  • 23
  • 52
Loading
Source Link
Suever
  • 11.2k
  • 1
  • 23
  • 52
Loading