Re: Ken's abrasiveness

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:
 
> Eu does not have a string type, but it certainly has strings. repeat_str()
> sounds
> like a nice function to have in the standard library:
> 
> }}}
<eucode>
> ? repeat('A', 2) -- "AA"
> ? repeat("ABC", 2) -- {"ABC","ABC"}
> ? repeat_str("ABC", 2) -- "ABCABC"
> </eucode>
{{{


But the name is wrong. Consider ...

 ? repeat_str({"ABC","DEF"}, 2) -- {"ABC","DEF","ABC","DEF"}


-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu