logo
  • Start here
  • Episodes
  • Articles
  • Log in
  • Sign up

Stream.iterate and Advent of Code Day 1

Topics:
IEx
Streams
Advent of Code

Let's give the Advent of Code a try! 2019 is my first year checking it out, and I solved all of day one from within IEx.

It's also interesting to see everyone else's solutions on Github. One of my favorites was Sasa Juric's solution, which used &Stream.iterate/2 to do the recursion necessary in the 2nd part of the problem.

It's not to late to join Advent of Code! Just follow this link:

https://adventofcode.com/


Saša Jurić's solution: https://github.com/sasa1977/aoc/blob/master/lib/2019/201901.ex

Hexdocs for Stream.iterate

Share

Request a free email course
Back to index

No Comments

Log in to leave a comment
Alchemist Camp 2017-2020
Hosted on Digital Ocean
Terms and Conditions