13-functions-returning-functions-statemachine

command
v0.0.0-...-9882766 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

The idea here is to test out having a function returning another function to be executed next. The reason we might want to do something like this can be that we are iterating a slice, and if we want to do something special depending on the value found, we return the next function to be called. That function again can call another one...and so on.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL