GoLang -- jps sasadara
Install to the Ubuntu OS https://www.systutorials.com/how-to-install-go-1-13-x-on-ubuntu-18-04/ Guide https://docs.google.com/document/d/1ckYpi6hcRkaBUEk975f54oGsHYHu7GhzOk7-nOrkNxo/edit# Callback : passing a func as an argument Supper Example 1: https://play.golang.org/p/AI8jKiYIKO6 Supper Example 2: Supper Example 3: package main import "fmt" func visit (numbers [] int , callback func ( int )) { for _ , n := range numbers { callback(n) } } func main () { visit ([] int { 1 , 2 , 3 , 4 } , func (n int ) { fmt . Println (n) }) } // callback: passing a func as an argument package main import "fmt" func filter (numbers [] int , callback func ( int ) bool ) [] int { var xs [] int for _ , n := range numbers { if callback(n) { xs = append (xs , n) } } return xs } func main () { xs := filter ([] int { 1 , 2 , 3 , 4 } , func (n int ) bool { return n > 1 }) fmt . Println (xs) // [2 3 4] } ...