[Jprogramming] k programming challenge
Raul Miller
rauldmiller at gmail.com
Wed Jan 27 20:11:17 UTC 2016
Ah, I see, yes, I left out the output stage...
I guess if I were to include the writing-to-file stage, I'd probably
do it something like this:
require'csv web/gethttp'
const=: gethttp 'http://usconstitution.net/const.txt'
words=: [: ;: ' '"_`(I.@:= toupper)`]}~@tolower
('solution.txt';'|';'') writedsv~ |."1\:~ (<@#/.~,.~.)words const
And I guess I shouldn't be so careless as to leave out steps...
Thanks,
--
Raul
On Wed, Jan 27, 2016 at 3:00 PM, Raul Miller <rauldmiller at gmail.com> wrote:
> On Wed, Jan 27, 2016 at 2:34 PM, chris burke <cburke at jsoftware.com> wrote:
>> Note that this solution adheres to the I/O requirements of the challenge.
>
> I think any solution which downloads the text of the constitution from
> http://usconstitution.net/const.txt would adhere to those I/O
> requirements?
>
> Thanks,
>
> --
> Raul
More information about the Programming
mailing list