Skip to content

Commit

Permalink
Improve definitions of functions 'and' and 'or'
Browse files Browse the repository at this point in the history
  • Loading branch information
aelred committed Apr 17, 2015
1 parent d894dc1 commit beb2755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/lib.star
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ let

# basic logic
not = x -> if x then False else True,
or = x y -> if x then True else if y then True else False,
and = x y -> if x then (if y then True else False) else False,
or = x y -> if x then True else y,
and = x y -> if x then y else False,
any = foldr (or) False,
all = foldr (and) True,

Expand Down

0 comments on commit beb2755

Please sign in to comment.