{.hint[name]: off.} # snake_case > camelCase import sequtils import strutils import std/sets import sugar let elves = split_lines strip read_file "input/3" proc get_priority(c: char): int = if c in 'a'..'z': return ord(c) - ord('a') + 1 return ord(c) - ord('A') + 27 # Part 1 proc part_1_score(line: string): int = let halflen = len(line) shr 1 var knapsack_1 = collect initHashSet: # Couldn't work out how to collect to set[char] for c in line[0..