[][src]Module show_notes::e004

Functionalized

Notes

This week's episode covers the basics of all sorts of functions: normal functions, methods, and closures.

Closures

Links

Follow/Support

Modules

struct_container

Create a module so we can see public/private behavior.

Functions

apply_function_to_i64

Shows how to take a function as an argument.

demonstrate_closure_environment

Shows how closures can act on elements within their environment.

demonstrate_function_arguments

Show how to call a function with a function as an argument.

demonstrate_methods

Shows how to use both struct and instance methods.