Advent of Code Solutions

19 lines
218 B

package adventoc2024
func anyt(b []bool) bool {
for i := range b {
if b[i] {
return true
}
}
return false
}
func allt(b []bool) bool {
for i := range b {
if !b[i] {
return false
}
}
return true
}