diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-12-03 03:56:21 +0100 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-12-03 03:56:21 +0100 |
| commit | 2c07926330771788a0a9b789b7397a159475bea7 (patch) | |
| tree | 4a9f0f948929388aa22e224d39244c4ec1d6a73d /2025/ocaml/lib/domain/d02p02.ml | |
| parent | 87f01faf1430393c1c062da2a9511c6767013ecb (diff) | |
feat(2025d2p2): remove existing rules and make validation rules OR instead of AND
Diffstat (limited to '2025/ocaml/lib/domain/d02p02.ml')
| -rw-r--r-- | 2025/ocaml/lib/domain/d02p02.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/2025/ocaml/lib/domain/d02p02.ml b/2025/ocaml/lib/domain/d02p02.ml index 725d4b1..d1624b6 100644 --- a/2025/ocaml/lib/domain/d02p02.ml +++ b/2025/ocaml/lib/domain/d02p02.ml @@ -4,7 +4,7 @@ module ID = struct let create num = num - let validate rules id = List.fold_left (fun acc r -> acc && r id) true rules + let validate rules id = List.fold_left (fun acc r -> acc || r id) false rules let incr = ( + ) 1 |
