Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Perl, 52 bytes

Perl, 52 bytes

-13 byte thanks to @manatwork
-1 byte thanks to @msh210

sub f{lc pop=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band per line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

#Perl, 52 bytes

-13 byte thanks to @manatwork
-1 byte thanks to @msh210

sub f{lc pop=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band per line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

Perl, 52 bytes

-13 byte thanks to @manatwork
-1 byte thanks to @msh210

sub f{lc pop=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band per line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

added 34 characters in body
Source Link
Dada
  • 8.5k
  • 1
  • 18
  • 44

#Perl, 5352 bytes

-13 byte thanks to @manatwork
-1 byte thanks to @msh210

sub f{lc$_[0]=~slc pop=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band per line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

#Perl, 53 bytes

-13 byte thanks to @manatwork

sub f{lc$_[0]=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band per line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

#Perl, 52 bytes

-13 byte thanks to @manatwork
-1 byte thanks to @msh210

sub f{lc pop=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band per line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

fix a very confusing typo
Source Link
msh210
  • 3.5k
  • 23
  • 36

#Perl, 53 bytes

-13 byte thanks to @manatwork

sub f{lc$_[0]=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band perlper line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

#Perl, 53 bytes

-13 byte thanks to @manatwork

sub f{lc$_[0]=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band perl line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

#Perl, 53 bytes

-13 byte thanks to @manatwork

sub f{lc$_[0]=~s/^the //ri}print sort{f($a)cmp f$b}<>

One band per line as input, and so is the output.

The implementation is quite straight forward : the program prints the list of bands, sorted with the help of a custom function (f) which returns the lower case band name without the eventual leading the .

deleted 374 characters in body
Source Link
Dada
  • 8.5k
  • 1
  • 18
  • 44
Loading
added 38 characters in body
Source Link
Dada
  • 8.5k
  • 1
  • 18
  • 44
Loading
deleted 2 characters in body
Source Link
Dada
  • 8.5k
  • 1
  • 18
  • 44
Loading
Source Link
Dada
  • 8.5k
  • 1
  • 18
  • 44
Loading

AltStyle によって変換されたページ (->オリジナル) /