Re: Exercism task - Bob
- Posted by axtens_bruce Feb 12, 2023
- 630 views
petelomax said...
Shouldn't it be return "Sure." rather than return "Sure"?
I'd have probably gone with s=trim(s) to start with, and all_caps = equal(s,upper(s)). (not tested)
I didn't do trim because I wanted to remove ALL spaces. I probably should have left it at that because, after keeping all alphas I realised that I had to keep numerics for one of the tests to work properly. So I might just filter(s, "out", " ") or something like that. The all_caps looks okay.
-Bruce