15-construct-functions

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 purpose of this exercise is to test how to compose a function based on what input you give to the function composer. Here we have two functions:

  • One who simulates the writing to a channel
  • One who simulates the writing to the console

We then have a newOutput channel who will take what kind of output we want as input, and return a new function based on the kind that was chosen.

The new function is then executed, and should give the correct output based on what output kind that was chosen.

Jump to

Keyboard shortcuts

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