How the user runs commands, used in hints like "run bb new". -main binds
this to "bb aoc"; projects with one bb task per command use plain "bb".
How the user runs commands, used in hints like "run `bb new`". `-main` binds this to "bb aoc"; projects with one bb task per command use plain "bb".
(days-in-event year)AoC ran 25 days per event until 2025, when it moved to 12
AoC ran 25 days per event until 2025, when it moved to 12
(get-current-year)Returns the current year in EST (America/New_York)
Returns the current year in EST (America/New_York)
(latest-event-year)(latest-event-year t)The most recent year an event has started: this year in December, otherwise last year
The most recent year an event has started: this year in December, otherwise last year
(now)The current time in the AoC timezone (America/New_York)
The current time in the AoC timezone (America/New_York)
(realise! x)Forces lazy parts of x (up to realise-limit nodes) and returns x
Forces lazy parts of x (up to `realise-limit` nodes) and returns x
Upper bound on how much of a result time-execution walks, so infinite
seqs such as (cycle instructions) don't hang the runner
Upper bound on how much of a result `time-execution` walks, so infinite seqs such as `(cycle instructions)` don't hang the runner
(resolve-year-day {:keys [year day] :as opts} t)Fills in the default year/day for opts at time t. Returns
{:opts opts} on success, or {:error msg}
Fills in the default year/day for `opts` at time `t`. Returns
{:opts opts} on success, or {:error msg}(time-execution expr)Evaluates expr, returning {:return <result> :time <elapsed description>}. Lazy results are realised inside the timing, so the time is charged to the fn that built them. Output printed by expr is left alone so debug printing works as expected.
Evaluates expr, returning {:return <result> :time <elapsed description>}.
Lazy results are realised inside the timing, so the time is charged to the
fn that built them. Output printed by expr is left alone so debug printing
works as expected.(todays-puzzle)(todays-puzzle t)The {:year :day} of today's puzzle, or nil when today isn't a puzzle day
The {:year :day} of today's puzzle, or nil when today isn't a puzzle day
(year-day-error year day latest-year)Returns an error message if year/day isn't an AoC puzzle, otherwise nil
Returns an error message if year/day isn't an AoC puzzle, otherwise nil
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |