From c705950a5380a8321318015d7ed8af5cef487d3e Mon Sep 17 00:00:00 2001 From: Rodrigo Quelhas Date: Sun, 10 Nov 2019 19:04:20 +0000 Subject: [PATCH 1/2] Fixed cameligo syntax "Defining a set" section --- gitlab-pages/docs/language-basics/sets-lists-touples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab-pages/docs/language-basics/sets-lists-touples.md b/gitlab-pages/docs/language-basics/sets-lists-touples.md index ec1bfa43f..8658076df 100644 --- a/gitlab-pages/docs/language-basics/sets-lists-touples.md +++ b/gitlab-pages/docs/language-basics/sets-lists-touples.md @@ -28,7 +28,7 @@ end ```cameligo type int_set = int set let my_set: int_set = - Set.add 3 (Set.add 2 (Set.add 1 Set.empty)) + Set.add 3 (Set.add 2 (Set.add 1 (Set.empty: int set))) ``` From bb173cd994cd55f0fc961cf12bcdf14dd10bad5f Mon Sep 17 00:00:00 2001 From: Rodrigo Quelhas Date: Sun, 10 Nov 2019 19:13:28 +0000 Subject: [PATCH 2/2] Added cameligo syntax to "Empty sets" section --- gitlab-pages/docs/language-basics/sets-lists-touples.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gitlab-pages/docs/language-basics/sets-lists-touples.md b/gitlab-pages/docs/language-basics/sets-lists-touples.md index ec1bfa43f..d567a7ac2 100644 --- a/gitlab-pages/docs/language-basics/sets-lists-touples.md +++ b/gitlab-pages/docs/language-basics/sets-lists-touples.md @@ -41,10 +41,13 @@ let my_set: int_set = const my_set: int_set = set end; const my_set_2: int_set = set_empty; ``` + +```cameligo +let my_set: int_set = (Set.empty: int set) +``` + - - ### Checking if set contains an element