bakpakin on master
Update Janet version. (compare)
bakpakin on master
Fix meson.build for older versi… (compare)
bakpakin on v1.22.0
bakpakin on v1.22.0
bakpakin on master
Fix version bump. (compare)
bakpakin on v1.22.0
bakpakin on master
Prepare for 1.22.0 release. (compare)
bakpakin on master
Add `module/value` function to … (compare)
bakpakin on master
Remove file/popen - address #974 (compare)
bakpakin on master
Use janet_getnat when non-negat… (compare)
bakpakin on master
Fix #975 - null ptr dereference… Merge pull request #976 from ri… (compare)
put
and alike for associative datastructures and set for vars
(++ (variant-amount-of-gets-here))
would have worked
(defmacro ++in [variable arr] ~(,put-in ,variable ,arr (+ (,get-in ,variable ,arr) 1)))
update-in
is probably the best way to do what you want using standard pieces
(string/from-bytes 2r01111111
;(seq [i :down-to [56 0 8]]
(scan-number (string (band (brshift (int/u64 dl) i) 0x000000FF)))))
(def file-conf ((compile (parse (slurp file)))))
so definitely executing the code
compile
iiuc: https://github.com/janet-lang/janet/blob/master/test/suite0008.janet#L297-L298
llmII: here's a taste of what you can do with parser/*
stuff: https://github.com/sogaiu/janet-editor-elf/blob/master/janet-editor-elf/delims.janet#L16-L53
this is what i use to find missing delimiters in "partial" code
[]
to get it all back as an array of toplevel values