diff options
author | Louis Pilfold <louis@lpil.uk> | 2023-04-29 14:36:35 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-04-29 14:36:35 +0100 |
commit | 15d571acf37ba0fc394766da598dc7fcf58d7dbd (patch) | |
tree | 9c2cbb786bbbd1062078f5c6553ddc64d7328945 | |
parent | 63d17f8a64634badf1855b55fd97cd75ecb03e09 (diff) | |
download | gleam_stdlib-15d571acf37ba0fc394766da598dc7fcf58d7dbd.tar.gz gleam_stdlib-15d571acf37ba0fc394766da598dc7fcf58d7dbd.zip |
Simplify example
-rw-r--r-- | README.md | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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, "!"]) } ``` |