-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A latch can be any expression, including `1`, which is so well known, it's even a built-in.
- Loading branch information
1 parent
2049a35
commit d72d7e7
Showing
2 changed files
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
/// Evaluates to 1 on the first row and 0 on all other rows. | ||
/// Useful to define a fixed column of that property. | ||
let is_first: int -> int = |i| if i == 0 { 1 } else { 0 }; | ||
|
||
/// The constant one. | ||
let one: int -> int = |i| 1; | ||
let is_first: int -> int = |i| if i == 0 { 1 } else { 0 }; |