Tech > LUA 'VARARG' DEMO
made by StinkerB06
uploaded by StinkerB06
language: lua
added:

- CLICK TO PLAY -
On iPhone or iPad: tap Play full screen, then Share > Add to Home Screen to play without the browser bars.
1
The 'vararg' feature in Lua allows functions to address an infinite amount of arguments passed to it.
For example, the math.min() and math.max() functions accept an infinite amount of arguments, whereas the simple MIN() and MAX() in PICO-8 only allow two arguments.
This code example is based on this GitHub comment:
https://github.com/NLua/NLua/issues/220#issuecomment-286056182
Comments
![]() masternama
|
Awesome!
|
![]() masternama
|
Wow! @StinkerB06 what's TIC-80 computer hardware?
|
![]() masternama
|
https://tic.computer/learn
|
