From 8afaa22a08c326bad8ea58deab8009922a60f7ab Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 1 Dec 2021 10:51:14 -0600 Subject: [PATCH] Add docstrings --- 2021/common.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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> {