Any code golfers in here that can give me tips wit...
# random
r
Any code golfers in here that can give me tips with this? https://codegolf.stackexchange.com/a/125906/70727
m
redrield: You can use extension function
fun String.x(o:String)=zip(o,::maxOf)
, but this returns a list and not a string anyway, so you have to call
.joinToString("")
on the result of
zip
.
b
The other solution will also return a list so, if valid, yours is shorter
m
@bamdmux In some languages string is a list, so for me it's called to return list only in those. Langs like Kotlin should return string. There is nothing in codegolf suggesting otherwise.