Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

D is great at method chaining, but:

str.toLower.strip().split("").sort();

is the same as

sort(split(strip(str.toLower),""));

and usually the non-chained one is shorter, which I just realised, which lets me shorten my answer to Manage Trash SoManage Trash So :D

D is great at method chaining, but:

str.toLower.strip().split("").sort();

is the same as

sort(split(strip(str.toLower),""));

and usually the non-chained one is shorter, which I just realised, which lets me shorten my answer to Manage Trash So :D

D is great at method chaining, but:

str.toLower.strip().split("").sort();

is the same as

sort(split(strip(str.toLower),""));

and usually the non-chained one is shorter, which I just realised, which lets me shorten my answer to Manage Trash So :D

Source Link
cat
  • 5.9k
  • 2
  • 26
  • 44

D is great at method chaining, but:

str.toLower.strip().split("").sort();

is the same as

sort(split(strip(str.toLower),""));

and usually the non-chained one is shorter, which I just realised, which lets me shorten my answer to Manage Trash So :D