From ff4c58013382e0ec3d549e6e50a3026095822adb Mon Sep 17 00:00:00 2001 From: John David Pressman Date: Thu, 21 Nov 2019 05:41:22 -0800 Subject: [PATCH] Add anonymous function example for CameLIGO --- gitlab-pages/docs/language-basics/functions.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gitlab-pages/docs/language-basics/functions.md b/gitlab-pages/docs/language-basics/functions.md index 83da5a338..d618779c7 100644 --- a/gitlab-pages/docs/language-basics/functions.md +++ b/gitlab-pages/docs/language-basics/functions.md @@ -93,4 +93,10 @@ const increment : (int -> int) = (function (const i : int) : int is i + 1); // a = 2 const a: int = increment(1); ``` - \ No newline at end of file + + +```cameligo +let increment : (int -> int) = fun (i: int) -> i + 1 +``` + +