Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
type student struct {
	name  string
	score int
}

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

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

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