I've been stuck for ages on day 19, part 1 .... just couldn't see what
was wrong....
only just realised that my processing on the silly data format had added
an extraneous 3-d coordinate for each "scanner"!!!
I don't think that's a spoiler - just a warning, to me if noone else.
Cheers,
Mike
On 29/12/2021 16:51, Raul Miller wrote:
Looking at what you have done here, I would replace dacr, dalf, daeb
and abes with implementation, merging dacr and dalf in the process.
And, I guess I would keep the functionality of abes, sort of:
13 :'('' ''&,each&.;: 1!:1<y)-.CR,LF'
(13 10{a.) -.~ [: ' '&,&.>&.;: [: 1!:1 <
This still winds up with a few more spaces in intermediate results,
but that's harmless. The space overhead from boxing is more
significant, in this context.
That said, note that that abes implementation is not actually needed
(because ;:inv also pads with spaces). So, this would work:
".(]&.;: 1!:1<f)-.CR,LF
It might make sense to rephrase this further, naming specific steps
(fread instead of 1!:1< for example). But that's a rough outline...
I hope this helps,
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm