Log In  

I've of course found plenty of things on doing queues in lua all over the web, but it appears pico 8 has fewer of the main lua libraries available.

What I'd like to do is have a queue for passing messages to coroutines for "commands" to process. TBH it's probably overkill, but I'd like to know how anyway.

I know I can add(x, 10) to append to a table. But then there's del, which apparently only searches for a value and deletes it. I'm surprised there's no mirror operation to add which would remove from the end (or start) of a table. That's what I'm looking for, I think.

P#40290 2017-05-07 20:25 ( Edited 2017-05-08 00:25)

I just found this, sorry I hadn't searched first :)

https://www.lexaloffle.com/bbs/?tid=3389

P#40291 2017-05-07 20:25 ( Edited 2017-05-08 00:25)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-11-15 01:26 | 0.009s | 2097k | Q:11