AocHelpers (aoc_helpers v0.5.0)
Documentation for AocHelpers
.
Link to this section Summary
Functions
Returns the input given the year and day
Returns the input HTTPoison request given the year and day
Streams the input as a series of integers.
Streams the input as a series of lines.
Link to this section Functions
Link to this function
get_input(year, day, cookie \\ nil)
Returns the input given the year and day
Link to this function
get_input_request(year, day, cookie \\ nil)
@spec get_input_request(year :: number(), day :: number(), cookie :: String.t()) :: HTTPoison.Response.t()
Returns the input HTTPoison request given the year and day
Link to this function
stream_integers(input, opts \\ [])
Streams the input as a series of integers.
Options:
- base, optional, defaults to 10. Base for parsing the digits.
- trim, optional, defaults to true. For the splitting process.
- whiteline, optional, defaults to "". Value for empty lines.
Link to this function
stream_lines(input, opts \\ [trim: true])
Streams the input as a series of lines.
Options:
- trim, optional, defaults to true.