Skip to main content

Timeline for Spoonerise words

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Jan 18, 2016 at 18:50 comment added Dennis No, s is a default argument, so you don't have to specify it. An unnamed lambda is an acceptable submission; f= is not required.
Jan 18, 2016 at 18:37 comment added Ogaday Thanks @Dennis, that does indeed work, nice refactoring. Interesting that the brackets are needed, and you don't need to pass s as an arg to the second lambda do you? That solution gives me 98 bytes, with a leading import statement and f=.
Jan 16, 2016 at 15:54 comment added Dennis 1. The question explicitly allows to take the two strings as a list, so there seems to be no good reason for the * in *g. 2. The second version can be golfed down to lambda x,y,s=lambda s:re.split("[aeiou]",s)[0]:(s(y)+x[len(s(x)):],s(x)+y[len(s(y)):]).
Jan 16, 2016 at 15:02 history edited Ogaday CC BY-SA 3.0
deleted 6 characters in body
Jan 16, 2016 at 15:01 comment added Ogaday Yes! Definitely. This is my first time golfing ever, so any feedback and advice is appreciated.
Jan 16, 2016 at 4:13 comment added xnor Presumably you mean s=re.split in the alternative?
Jan 15, 2016 at 16:49 history edited ETHproductions CC BY-SA 3.0
minor formatting edits
Jan 15, 2016 at 16:46 review First posts
Jan 15, 2016 at 16:57
Jan 15, 2016 at 16:42 history answered Ogaday CC BY-SA 3.0