Re: Ken's abrasiveness
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
|
Not Categorized, Please Help
|
|