Implement reduce in Go [Golang Tutorial 2021]



Implement reduce in Go [Golang Tutorial 2021]

Implement reduce in Go [Golang Tutorial 2021]

In this tutorial, we learn about how to implement “reduce” in go. This is a question I’ve seen asked in software engineering technical whiteboard interviews and is a great exercise to brush up on some advanced golang.

#johncodes

šŸš€ SUMMARY:
Reduce is the concept of applying a function to every single element of some arbitrary array of items and returning some kind of aggregate. In go, we can pass functions to other functions to get some kind of generic method.

šŸ”— SOCIAL LINKS:
ā–ŗ Mastodon: https://fosstodon.org/@johnmcbride
ā–ŗ Home page: https://johncodes.com
ā–ŗ Email contact: [email protected]

šŸ¤” About:
Hi all, Iā€™m John, senior software engineer, linux dork, and open source enthusiast. I make videos about tech, engineering, productivity, and life! Like, comment, and subscribe for more!

Comments are closed.