No description
Find a file
2025-12-07 12:33:38 +01:00
pika restructured the lib 2025-12-07 12:32:52 +01:00
.gitignore wip 2025-12-06 15:20:49 +01:00
lua-lib-scm-1.rockspec restructured the lib 2025-12-07 12:33:38 +01:00
makefile wip 2025-12-06 01:24:27 +01:00
README.md added the initial commit 2025-12-02 18:14:26 +01:00

pika - lib.lua

This is my first lua library. It will primarily be used for advent-of-code and was started in late 2025.

installation

  1. Clone this repo.

  2. cd into the repo folder.

  3. Run sudo luarocks make

  4. Use the lib.


Currently there is not much you can do.

examples

Just giving the answer..

local aoc = require("pika.aoc")

local int = 5

aoc.answer(int)

OUTPUT:

$ lua init.lua
The anwser should be:   5

Store all lines inside a file as separate entries in a table

local aoc = require("pika.aoc")

local file = arg[1]

tbl = aoc.file_to_tbl(file)

usage:

$ lua init.lua ./path/to/file.txt