diff --git a/2021/common.ts b/2021/common.ts index c663726..f7bae03 100644 --- a/2021/common.ts +++ b/2021/common.ts @@ -50,6 +50,9 @@ async function fileLines( return readLines(await Deno.open(filePath)); } +/** Returns an generator that will yield lines of input for the given Advent of + * Code 2021 day. + */ export async function inputLines( day: string, ): Promise> { @@ -65,6 +68,9 @@ async function* readStringsAsNumbers( } } +/** Returns an generator that will yield lines of input parsed as integers for + * the given Advent of Code 2021 day. + */ export async function inputNumbers( day: string, ): Promise> {