Skip to content

Instantly share code, notes, and snippets.

@pkulchenko
pkulchenko / lazylists.lua
Created April 29, 2021 05:14 — forked from marcoonroad/lazylists.lua
Lazy evaluation on lists (a la Perl6) with Lua... [ FIXED ]
#!/usr/bin/lua
-- Perl6 example --
--[[
my @xs := gather {
my $x = 0;
my $y = 1;
while True {
take $x;
@pkulchenko
pkulchenko / redis.lua
Created December 19, 2023 14:12 — forked from solisoft/redis.lua
Redbean Redis Client
local redis = {
_VERSION = 'redis-lua 2.0.5-dev',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using `Redis` is now deprecated so you should explicitly assign
-- the module to a local variable when requiring it: `local redis = require('redis')`.
Redis = redis