add newline
This commit is contained in:
parent
e39e08a8b9
commit
cb0654e59b
|
@ -24,11 +24,13 @@ example: adding some numbers
|
||||||
|
|
||||||
```
|
```
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"git.tuxpa.in/a/lambda"
|
"git.tuxpa.in/a/lambda"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main(){
|
func main(){
|
||||||
arr := []int{1, 2, 3, 4, 6, 5}
|
arr := []int{1, 2, 3, 4, 6, 5}
|
||||||
ans := lambda.Map(arr, func(x int) int { return x + 4 })
|
ans := lambda.Map(arr, func(x int) int { return x + 4 })
|
||||||
|
|
Loading…
Reference in New Issue