From 15d571acf37ba0fc394766da598dc7fcf58d7dbd Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sat, 29 Apr 2023 14:36:35 +0100 Subject: Simplify example --- README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 44481aa..05c68ca 100644 --- a/README.md +++ b/README.md @@ -21,15 +21,9 @@ Import the modules you want to use and write some code! ```gleam import gleam/string -import gleam/list.{contains} -fn usage() { - string.append("str", "ing") -} - -fn more_usage() { - [1, 2, 3] - |> contains(any: 2) +pub fn greet(name: String) -> String { + string.concat(["Hello ", name, "!"]) } ``` -- cgit v1.2.3