https://ww.telent.net/2020/12/15/not_writing_a_lispos_honest only nine more days of this daily-blog-posting exercise left and I can go back to my usual three-times-a-year frequency. Thank goodness
Today, I experimented with converting the NixWRT Lua service monitor scripts into Fennel.
@dan "I haven't found a nice way to iterate through an array and return the first element that matches a predicate (as far as I can tell, an early return from an each is not possible) but I'm sure there must be one" i've never heard of fennel until now (it looks pretty neat), the docs recommend installing lume or luafun for map, reduce, and filter
@dan wrote an okay-seeming function for what you're looking for: https://gist.github.com/leo60228/ab68f365a10f6c218a31a3a7b7882280
personal server for leo60228 (@email@example.com)