Unrecorded changes from last year or maybe earlier.

quickdudley
Dec 2, 2025, 9:27 PM
U5W5L5JJZNUIOF2H2OEB73V4XUX77CNFKFOGNUTRLYJZ32KH65JQC

Dependencies

  • [2] LMKWOZVD Solution for 2023 day 1 part 1

Change contents

  • edit in 2023/shell.nix at line 3
    [2.135]
    [2.135]
    luajit
  • file addition: day3.lua (----------)
    [2.16]
    isSymbol = (function ()
    local symbols = [=[~`!@#$%^&*()_-+=|\{[}]:;"'<,>?/]=]
    return function(char)
    for ix = 1, string.len(symbols), 1 do
    if char == string.sub(symbols, ix, ix) then
    return true
    end
    end
    return false
    end
    end)()
    process = function(input)
    if type(input) == "string" then
    input = io.open(input)
    end
    local charset = {}
    for line in input:lines() do
    for ix = 1, string.len(line), 1 do
    charset[string.sub(line, ix, ix)] = true
    end
    end
    local s = ""
    for k, v in pairs(charset) do
    s = s .. k
    end
    print(s)
    end
    main = function()
    local ix
    ix = 1
    while arg[ix] do
    process(arg[ix])
    ix = ix + 1
    end
    end
    main()