Skip to content

Commit

Permalink
Add a note about generalizing complementActive and complementEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Aug 9, 2023
1 parent 8f54371 commit 049bcc4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ class POL (pol :: Pol) where
-- | Test whether @pol@ maps the given bit to one
test :: proxy pol -> S -> Bool

-- Both 'complementActive' and 'complementEmpty' are offered for simplicity
-- instead of a generalized function that works in both cases (it would need
-- another proxy parameter for the element type).

-- | Every slot is either active or empty
complementActive ::
proxy pol
Expand Down

0 comments on commit 049bcc4

Please sign in to comment.