From 4b81eb9646936f61669a8892c1c2a43b6d63f978 Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Wed, 1 Jun 2022 14:32:04 +0400 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 486c81d..218866c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ``` [1, 2, 3] |> List.first |> Option.is_some // Option.is_some(List.first([1, 2, 3])) ``` +- Allow binary operators to be used as lambdas + ``` + function sum(l : list(int)) : int = foldl((+), 0, l) + function logical_and(x, y) = (&&)(x, y) + ``` ### Changed - Error messages have been restructured (less newlines) to provide more unified errors. Also `pp_oneline/1` has been added. - Ban empty record definitions (e.g. `record r = {}` would give an error).