The content on this page is written in Chinese, and then traslated into English by machine. More accurate traslations are welcome at: https://github.com/wa-lang/man/tree/master/en

Ending's law: "Any application that can be compiled to WebAssembly, will be compiled to WebAssembly eventually."

4. Functions

Functions are sequences of statements designed to be reused many times. This chapter introduces the basic usage of Wa-lang functions, as well as features such as function values, anonymous functions, and closures.