- Lua Quick Start Guide
- Gabor Szauer
- 88字
- 2021-08-05 10:30:39
Functions
A function is essentially a named chunk of code. Unlike other chunks, the contents of a function are not automatically executed when the file is loaded. When a file is first loaded, functions are simply defined. Once a function has been defined, you can execute the function by calling it. Because a function is a named chunk, you can call a function as many times as you want. The same scope rules apply to functions as to do/end blocks.
Read more about functions online at https://www.lua.org/pil/5.html.
推薦閱讀
- 少兒人工智能趣味入門:Scratch 3.0動(dòng)畫與游戲編程
- Kibana Essentials
- Visual C++串口通信開發(fā)入門與編程實(shí)踐
- PHP 從入門到項(xiàng)目實(shí)踐(超值版)
- C# 2012程序設(shè)計(jì)實(shí)踐教程 (清華電腦學(xué)堂)
- Game Programming Using Qt Beginner's Guide
- Building Minecraft Server Modifications
- 深入淺出RxJS
- Android應(yīng)用開發(fā)實(shí)戰(zhàn)
- TypeScript 2.x By Example
- Greenplum構(gòu)建實(shí)時(shí)數(shù)據(jù)倉庫實(shí)踐
- Laravel Design Patterns and Best Practices
- Python應(yīng)用開發(fā)技術(shù)
- TypeScript全棧開發(fā)
- Java 9:Building Robust Modular Applications