Go

Put a channel to a channel for golang

I have never heard this. I would like to use this from now. package main import "fmt" type st struct { data1 int data2 int } func main() { c1 := make(chan *st, 1) c2 := make(chan *st, 1) c1 <- &st{1, 2} c2 <- <-c1 close(c1) close(c2) res, _ := <-c2 fmt.Println(res.data2) } >>> 2

GAS Library - SOUWA_GAS - Effects on Optimized Codes of Pyramid Method

Abstract I have already reported that the pyramid method is one of very effectively algolithms for summing string elements in an array using Google Apps Script (GAS). This report describes the adaptability of the pyramid method to any languages except for GAS. c++ (g++), Go, Java, Javascript on Node.js, Python and Ruby were chosen as the sample languages. In those languages, there are languages which have the distinctive commands for summing the array elements.