diff options
| author | 2022-08-17 07:38:48 +0200 | |
|---|---|---|
| committer | 2022-08-17 07:38:48 +0200 | |
| commit | 585e51cac05cbb4fbc54ae3381bea4f41320ff5d (patch) | |
| tree | bc456bc650f5828e6058131ece28e726509b9caa /src/option.hff | |
| parent | c50a02ec703c7c1c5f6823c8cbd07a424d604792 (diff) | |
let
Diffstat (limited to 'src/option.hff')
| -rw-r--r-- | src/option.hff | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/option.hff b/src/option.hff index ef32725..f0eddfc 100644 --- a/src/option.hff +++ b/src/option.hff @@ -1,4 +1,8 @@ enum union Option<T> { None, Some T, + + fn empty(self Option) bool { + return self.#tag == :None; + } } |