Functions as First Class Objects - Callback Functions & Anonymous Functions - Lua Tutorial! (2021)

Veröffentlicht am: 22 November 2021
auf dem Kanal: DevJeeper
4,941
206

Functions in Lua are first class objects and technically all of them are anonymous. Let’s talk about what that actually means, and how we can use that knowledge to, among other things, create callback functions.

Socials:
Discord:   / discord  
Twitter: https://bit.ly/TwitterWMG
Instagram: https://bit.ly/InstaWMG
Our Games: https://bit.ly/ItchWMG

Text Editor: Atom: https://bit.ly/2WRikj8

[Music] - Daniel Docherty https://www.danieldocherty.net/

00:00 Intro
00:13 Function syntax sugar
00:53 First class objects
02:03 Callback functions
02:23 Timer - Callback Example
03:36 Table.sort - anonymous function example
04:48 Self invoking functions
06:19 Outro


Auf dieser Seite können Sie das Online-Video Functions as First Class Objects - Callback Functions & Anonymous Functions - Lua Tutorial! (2021) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer DevJeeper 22 November 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 4,941 Mal angesehen und es wurde von 206 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!