Skip to content

Commit

Permalink
propagators/boolean -- inverter
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Sep 30, 2024
1 parent 82d420a commit 2d19fc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

> https://github.com/cicada-lang/propagator/issues/4
propagators/boolean -- inverter
propagators/boolean.test -- inverter

propagators/conditional -- conditional & conditionalWriter
Expand Down
4 changes: 4 additions & 0 deletions src/propagators/boolean.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { not } from "../generics/boolean.js"
import { definePrimitive } from "../propagator/index.js"

export const inverter = definePrimitive(2, not)

0 comments on commit 2d19fc9

Please sign in to comment.