Skip to main content
added 244 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

Japt, 8 bytes

Takes input as an array of characters.

£48nXcÃì

Try it (Header splits string input to array)

£48nXcÃì     :Implicit input of array
£            :Map each X
 48n         :  Subtract 48 from
    Xc       :  Charcode of X
      Ã      :End map
       ì     :Convert to integer from base-10 digit array

Japt, 8 bytes

Takes input as an array of characters.

£48nXcÃì

Try it (Header splits string input to array)

Japt, 8 bytes

Takes input as an array of characters.

£48nXcÃì

Try it (Header splits string input to array)

£48nXcÃì     :Implicit input of array
£            :Map each X
 48n         :  Subtract 48 from
    Xc       :  Charcode of X
      Ã      :End map
       ì     :Convert to integer from base-10 digit array
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

Japt, 8 bytes

Takes input as an array of characters.

£48nXcÃì

Try it (Header splits string input to array)