github goplus/gop v0.9.4
Release v0.9.4

latest releases: v1.3.0-pre.2, v1.3.0-pre.1, v1.2.6...
3 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.