diff options
author | Louis Pilfold <louis@lpil.uk> | 2024-05-24 16:34:17 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-05-24 16:34:17 +0100 |
commit | c991b5da85171bc99b788a680c9bbd14f63504f4 (patch) | |
tree | 8338ac43ef4990673b0126f9e6c69c6c0001c0a7 /src | |
parent | 4e7ed3605d5ca8f8891dcd8b11bb454d85fad8b6 (diff) | |
download | gleam_stdlib-c991b5da85171bc99b788a680c9bbd14f63504f4.tar.gz gleam_stdlib-c991b5da85171bc99b788a680c9bbd14f63504f4.zip |
Remove deprecated
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/bool.gleam | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/gleam/bool.gleam b/src/gleam/bool.gleam index 1c6e863..ba2222b 100644 --- a/src/gleam/bool.gleam +++ b/src/gleam/bool.gleam @@ -235,60 +235,6 @@ pub fn compare(a: Bool, with b: Bool) -> Order { } } -/// Returns `True` if either argument's value is `True`. -/// -/// ## Examples -/// -/// ```gleam -/// max(True, False) -/// // -> True -/// ``` -/// -/// ```gleam -/// max(False, True) -/// // -> True -/// ``` -/// -/// ```gleam -/// max(False, False) -/// // -> False -/// ``` -/// -@deprecated("Use the `bool.or` function instead") -pub fn max(a: Bool, b: Bool) -> Bool { - case a { - True -> True - False -> b - } -} - -/// Returns `False` if either bool value is `False`. -/// -/// ## Examples -/// -/// ```gleam -/// min(True, False) -/// // -> False -/// ``` -/// -/// ```gleam -/// min(False, True) -/// // -> False -/// ``` -/// -/// ```gleam -/// min(False, False) -/// // -> False -/// ``` -/// -@deprecated("Use the `bool.and` function instead") -pub fn min(a: Bool, b: Bool) -> Bool { - case a { - False -> False - True -> b - } -} - /// Returns a numeric representation of the given bool. /// /// ## Examples |