From 6b96117a990094ff62d8e842c3690a5b74eec551 Mon Sep 17 00:00:00 2001 From: hyphen Date: Fri, 8 Dec 2023 18:01:05 +0800 Subject: [PATCH] update README --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 368338d..d2e74fe 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,27 @@ +Quick Start + +```shell +go get github.com/hyphennn/glamda@latest +``` + +```go +package main + +import ( + "fmt" + + "github.com/hyphennn/glamda/lslice" +) + +func main() { + s := []int{1, 1, 4, 5, 1, 4} + ss := lslice.Map(s, func(f int) int { + return f + 1 + }) + fmt.Println(ss) //[2 2 5 6 2 5] +} +``` + Dedicated to providing a go lamda expression library that does not introduce any additional dependencies and only incurs minimal additional performance costs