github goplus/gop v0.9.4
Release v0.9.4

latest releases: v1.2.6, v1.2.5, v1.2.3-p2...
2 years ago

new features:

type student struct {
	name  string
	score int
}

a := [student{"du", 84}, student{"wang", 70}, student{"ken", 100}]

hasFullMark := {for x <- a, x.score == 100}
println("is any student full mark:", hasFullMark)

hasFailed := {for x <- a, x.score < 60}
println("is any student failed:", hasFailed)

Don't miss a new gop release

NewReleases is sending notifications on new releases.