Timeline for Check whether letters of word are in alphabetical order
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 4, 2015 at 2:40 | comment | added | Cat | @hsl Oh, duh, you even wrote that. I feel smrt. | |
Mar 4, 2015 at 2:39 | comment | added | NinjaBearMonkey |
@Eric I added a byte for the i flag.
|
|
Mar 4, 2015 at 2:38 | comment | added | Cat | Looks like 54 bytes to me. (26*2+2) | |
Mar 2, 2015 at 22:51 | comment | added | wchargin |
(Correction to my last comment: Ruby code should end with +"?$" . Use /#{?^+(?a..?z).to_a.join(??)+"?$"}/ to put it in a Regexp if needed.)
|
|
Mar 2, 2015 at 22:44 | comment | added | wchargin |
If you want a dynamically generated version, there's a decently short and readable Haskell version with '^':concatMap(:"?")['a'..'z']++"$" (34 bytes) or a somewhat golfed Ruby version with ?^+(?a..?z).to_a.join(??)+?$ (28 bytes).
|
|
Mar 2, 2015 at 12:54 | comment | added | Ismael Miguel | @MartinBüttner Those who complain can go to a place called META and look for it. Why no one visits such a beautiful place full of questions that solve most issues? | |
Mar 2, 2015 at 12:45 | comment | added | Martin Ender | @IsmaelMiguel I know. And in fact that definition was specifically chosen to make sure it doesn't rule out regex. But some people still regularly complain, because you can't use regex like any other language. | |
Mar 2, 2015 at 9:24 | comment | added | Ismael Miguel | @MartinBüttner According to the META (meta.codegolf.stackexchange.com/questions/2028/…) Regexes can be 'seen' somewhat as a programming language. | |
Mar 1, 2015 at 17:38 | history | edited | NinjaBearMonkey | CC BY-SA 3.0 |
added 195 characters in body
|
Mar 1, 2015 at 17:17 | comment | added | NinjaBearMonkey | @MartinBüttner I'd forgotten about Retina. Thanks! | |
Mar 1, 2015 at 17:16 | history | edited | NinjaBearMonkey | CC BY-SA 3.0 |
added 43 characters in body
|
Mar 1, 2015 at 17:12 | comment | added | Martin Ender |
You can use Retina instead of ES6 if someone complains that regex is not a language: i`^a?b?c?d?e?f?g?h?i?j?k?l?m?n?o?p?q?r?s?t?u?v?w?x?y?z?$
|
|
Mar 1, 2015 at 17:00 | history | answered | NinjaBearMonkey | CC BY-SA 3.0 |