Re: read numbers

"Richard O'Keefe" <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CABcYAdLxKUGM5s=wM-By_DpKN0LUNbyxY1+ZBb5ogBezHR-3hQ@mail.gmail.com>
I'm doing the Advent of Code and failed to spot the connection too.
When I got to the day in question, I began to wonder why I was bothering.
It was actually dead simple once I stopped trying to be clever.
The key insight was that the input does NOT consist of numbers.
(Part 1 was 18 lines of Smalltalk and part 2 was 25.  I felt a bit sad
at using so much code, but now that I *have* an APL system I find that
my APL skills are rusty in the extreme.)  Or was the key insight that
the input is a matrix that you need to process by COLUMNS, not rows?


On Fri, 10 Dec 2021 at 23:04, Roger Lipscombe <[email protected]>
wrote:

> On Fri, 10 Dec 2021 at 08:36, Hugo Mills <[email protected]> wrote:
> >    Unless I'm very much mistaken, this code is for this year's Advent
> > of Code problems. (https://adventofcode.com/2021/about), so the set-up
> > is somewhat contrived.
>
> I'm *doing* this year's advent of code, and I didn't spot the
> connection... :)
>
> I did day 3 in Elixir:
>
> https://github.com/rlipscombe/advent-2021/blob/main/03/day03ex/lib/day03ex.ex
> ,
> and I dealt with it character-by-character.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.