redis/lpush
Push one or more elements to the head of a list
const app = mvfm(prelude, redis);
const prog = app({}, ($) => {
return $.begin(
$.redis.lpush("tasks", "first", "second"),
$.redis.lrange("tasks", 0, -1)
);
});
await fold(
defaults(app, { redis: memoryRedisInterpreter }),
prog
); Ctrl+Enter