Skip to main content
added 13 characters in body
Source Link
Galen Ivanov
  • 21.2k
  • 3
  • 24
  • 61

Red, 78 7485 bytes

func[n][p: copy"kMGT"parse reverse n[any[3 skip ahead skip insert(take p)]]reverse n]

Try it online!Try it online!

Takes the input as a string.

Red, 78 74 bytes

func[n][p: copy"kMGT"parse reverse n[any[3 skip insert(take p)]]reverse n]

Try it online!

Takes the input as a string.

Red, 85 bytes

func[n][p: copy"kMGT"parse reverse n[any[3 skip ahead skip insert(take p)]]reverse n]

Try it online!

Takes the input as a string.

Post Undeleted by Galen Ivanov
Post Deleted by Galen Ivanov
deleted 438 characters in body
Source Link
Galen Ivanov
  • 21.2k
  • 3
  • 24
  • 61

Red, 7878 74 bytes

func[n][ifunc[n][p: 0 parsecopy"kMGT"parse reverse n[any[3 skip insert(pick"kMGT"i: i +take 1p)]]reverse n]

Try it online!Try it online!

Takes the input as a string.

Input as integer (up to 2^32):

Red, 85 bytes

func[n][i: 0 parse reverse n: to""n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!

Red, 78 bytes

func[n][i: 0 parse reverse n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!

Takes the input as a string.

Input as integer (up to 2^32):

Red, 85 bytes

func[n][i: 0 parse reverse n: to""n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!

Red, 78 74 bytes

func[n][p: copy"kMGT"parse reverse n[any[3 skip insert(take p)]]reverse n]

Try it online!

Takes the input as a string.

deleted 2 characters in body
Source Link
Galen Ivanov
  • 21.2k
  • 3
  • 24
  • 61

Red, 78 bytes

func[n][i: 0 parse reverse n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!

Takes the input as a string.

Input as integer (up to 2^32):

Red, 8785 bytes

func[n][i: 0 n:parse reverse to""n
parsen: n[any[3to""n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!Try it online!

Red, 78 bytes

func[n][i: 0 parse reverse n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!

Takes the input as a string.

Input as integer (up to 2^32):

Red, 87 bytes

func[n][i: 0 n: reverse to""n
parse n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!

Red, 78 bytes

func[n][i: 0 parse reverse n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!

Takes the input as a string.

Input as integer (up to 2^32):

Red, 85 bytes

func[n][i: 0 parse reverse n: to""n[any[3 skip insert(pick"kMGT"i: i + 1)]]reverse n]

Try it online!

deleted 7 characters in body
Source Link
Galen Ivanov
  • 21.2k
  • 3
  • 24
  • 61
Loading
Source Link
Galen Ivanov
  • 21.2k
  • 3
  • 24
  • 61
Loading