Liking cljdoc? Tell your friends :D

aoc-clj-elf.util


*cmd*clj

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".
sourceraw docstring

aoc-zoneclj

source

days-in-eventclj

(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
sourceraw docstring

first-yearclj

source

gen-solution-nsclj

(gen-solution-ns year day)
source

gen-specclj

(gen-spec spec defaults)
source

general-input-specclj

source

get-current-yearclj

(get-current-year)

Returns the current year in EST (America/New_York)

Returns the current year in EST (America/New_York)
sourceraw docstring

latest-event-yearclj

(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
sourceraw docstring

nowclj

(now)

The current time in the AoC timezone (America/New_York)

The current time in the AoC timezone (America/New_York)
sourceraw docstring

realise!clj

(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
sourceraw docstring

realise-limitclj

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
sourceraw docstring

resolve-year-dayclj

(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}
sourceraw docstring

show-helpclj

(show-help spec)
source

time-executioncljmacro

(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.
sourceraw docstring

todays-puzzleclj

(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
sourceraw docstring

year-day-errorclj

(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
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close