ZWNTWWSH5MACE45IIZDQS6QF4WC7FDNFQJ2XKWFYWCKDQH24P7NQC
VF5XLFOXCWMPIVGLMKEBKHVTRFD3BPDZUKSH3LUBHXHSWTB7G6IQC
defmodule Pass do defstruct passline: "" def parse_input(input_string) do %Pass{passline: input_string} end def valid(pass) do ["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"] |> Enum.map(&(pass.passline =~ &1)) |> Enum.all?(&(&1 == true)) endend
defmodule Pass do
defstruct passline: ""
def parse_input(input_string) do
%Pass{passline: input_string}
end
def valid(pass) do
["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"]
|> Enum.map(&(pass.passline =~ &1))
|> Enum.all?(&(&1 == true))