adventofcode

Happy Advent 2020! Please put answers in the pinned threads or create one if it does not exist yet. | https://github.com/adventofcode-clojurians/adventofcode-clojurians | Join the private leaderboard with code 217019-4a55b8eb
angusiguess 2016-12-24T17:01:29.000448Z

@bhauman I really like the use of iterate in your solutions. Most of my searches are still loop-recurs, that's a really cool way to structure search.

bhauman 2016-12-24T17:04:38.000449Z

@angusiguess thanks! iterate allows you to operate on the list of individual states that result from each step, loop has less overhead but requires more thinking 🙂

bhauman 2016-12-24T17:05:04.000450Z

I'm working on day 24 right now

angusiguess 2016-12-24T17:05:16.000451Z

Yeah, that's the bit. Any time I could prevent some heavily nested destructuring would be nice.

angusiguess 2016-12-24T17:07:38.000452Z

24 is pretty good. I really liked 23 too, a lil' bit of manual jitting

bhauman 2016-12-24T17:08:39.000453Z

@angusiguess I looked at you stuff the other day, the other thing I would recommend is to take advantage of read-string 🙂

bhauman 2016-12-24T17:08:58.000454Z

nothing like having your own parser

bhauman 2016-12-24T17:09:17.000455Z

er I mean reusing clojures powerful parser

angusiguess 2016-12-24T17:10:15.000456Z

Hahaha, yeah there's a lot of regular expression use in there admittedly.

bhauman 2016-12-24T17:10:16.000457Z

when I read 24 I was like really, that seems like a lot of work

bhauman 2016-12-24T17:10:34.000458Z

but here goes

angusiguess 2016-12-24T17:11:03.000459Z

Luckily you've probably got loads of bfs code already written

bhauman 2016-12-24T17:16:43.000460Z

🙂