From 7063a5ec67f414cad8ae7abfff9069bbc55bf2c3 Mon Sep 17 00:00:00 2001 From: Nikita Shilnikov Date: Sat, 11 Nov 2017 23:22:36 +0300 Subject: [PATCH] Update CHANGELOG [skip ci] --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f05837..6ba8228 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,15 @@ * `Maybe#success?` and `Maybe#failure?` (aliases for `#some?` and `#none?`) (flash-gordon) * `Either#flip` inverts a `Result` value (flash-gordon) * `List#map` called without a block returns an `Enumerator` object (flash-gordon) +* Right-biased monads (`Maybe`, `Result`, and `Try`) now implement the `===` operator which is used for equality checks in the `case` statement (flash-gordon) + ```ruby + case value + when Some(1..100) then :ok + when Some { |x| x < 0 } then :negative + when Some(Integer) then :invalid + else raise TypeError + end + ``` ## Deprecated