79719244

Date: 2025-07-29 21:47:10
Score: 0.5
Natty:
Report link

Note that since Fennel 1.5.0, you can also just use set:

(local tbl [1 [:a :b :c] 3])
(set (. tbl 2 3) :e)

Note that you give multiple indices to perform nested sets.

(set tbl.2.3) doesn't work for the same reason it doesn't work in Lua, that 2 and 3 would be string keys.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: bacchus