837 B
837 B
{{{ "planted": "11/13/2020", "repotted": "1/4/2026", "nobreak": "true" }}}
- Is there a market for cursed #pico8 functions?
- Probably not, but here are some actually useful overrides!
_min=min function min(f,...) arg={...} m=f for v in all(arg)do m=_min(v,m) end return m end
_max=max function max(f,...) arg={...} m=f for v in all(arg)do m=_max(v,m) end return m end
gardener's note: I almost didn't repot this one, but it's so absurd and brings me joy. The mid function in pico-8 typically returns the median of the 3 arguments passed to it. I was messing with ... params in Lua and figured out I could override functions, so I created this abomination. The other two are relatively useful, and an "average" function could be created in a similar way.
