import gleam/int import gleam/list pub fn add_pairs(xss: List(List(Int))) -> Int { list.flatten(xss) |> int.sum }