Alexander Avery
3 weeks ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||
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 |
|||
} |
Loading…
Reference in new issue