Skip to main content
added 42 characters in body
Source Link
Jonah
  • 33.8k
  • 4
  • 40
  • 94

J, 3333 31 bytes

(*1-~>~:/\)@e.&'aeiou'`(,:toupper)}

Try it online!Try it online!

-2 thanks to Lynn

Kind of shockingly long, but best I could find so far...

J, 33 bytes

(*1-~:/\)@e.&'aeiou'`(,:toupper)}

Try it online!

Kind of shockingly long, but best I could find so far...

J, 33 31 bytes

(>~:/\)@e.&'aeiou'`(,:toupper)}

Try it online!

-2 thanks to Lynn

Kind of shockingly long, but best I could find so far...

Post Undeleted by Jonah
deleted 150 characters in body
Source Link
Jonah
  • 33.8k
  • 4
  • 40
  • 94

J, 1433 bytes

[(*1-~:,]`toupper/\)@e.&'aeiou'`(,:toupper)}

Try it online!Try it online!

  • ]`toupper/. In general, u`v/. will alternately apply verb u and v to each element in a list. Here, we alternately apply the identity ] and toupper.
  • [:, The above will return a 1-column matrix, though. So we need to flatten , the result.

Kind of shockingly long, but best I could find so far...

J, 14 bytes

[:,]`toupper/.

Try it online!

  • ]`toupper/. In general, u`v/. will alternately apply verb u and v to each element in a list. Here, we alternately apply the identity ] and toupper.
  • [:, The above will return a 1-column matrix, though. So we need to flatten , the result.

J, 33 bytes

(*1-~:/\)@e.&'aeiou'`(,:toupper)}

Try it online!

Kind of shockingly long, but best I could find so far...

Post Deleted by Jonah
Source Link
Jonah
  • 33.8k
  • 4
  • 40
  • 94

J, 14 bytes

[:,]`toupper/.

Try it online!

  • ]`toupper/. In general, u`v/. will alternately apply verb u and v to each element in a list. Here, we alternately apply the identity ] and toupper.
  • [:, The above will return a 1-column matrix, though. So we need to flatten , the result.