github.com/goplus/gop@v1.2.6/printer/_testdata/39-Lambda-expression/lambda.gop (about)

     1  func Map(c []float64, t func(float64) float64) []float64 {
     2  	return [t(x) for x <- c]
     3  }
     4  
     5  println(Map([1.2, 3.5, 6], x => x * x))