Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,20 @@ You can use any expression as a lambda body
println(fib(20)) // prints 6765

As you can see, recursion works aswell.


### and & or
The result of an expression of the form expr 'and' expr is true if both of the expressions evaluate to true. If either one is false, the whole result will be false aswell.

println(true and true) // prints true
println(true and false) // prints false

The result of an expression of the form expr 'or' expr is true if one, or both of the expressions evaluate to true. Only if both evaluate to false, the whole result will be false aswell.

println(true or true) // prints true
println(true or false) // prints true
println(false or false) // prints false


<a name="implementation_details" />

## Implementation details
Expand Down