diff options
author | rsiddharth <s@ricketyspace.net> | 2019-06-18 19:49:32 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-06-18 19:49:32 -0400 |
commit | 96fba8d1e6436b258998921546537e74e338e00e (patch) | |
tree | 374986727fbb22c563e6b030397f012bcc997654 | |
parent | 44d2d7d631f8a2122fdc3c9d34cf09b0175c58d5 (diff) |
hn/g: Add athings:hash
* hn/g (athings:hash): New function.
-rwxr-xr-x | hn/g | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -73,3 +73,8 @@ (define (athings:file) (build-path (athings:data-dir) (slug))) +(define (athings:hash f) + (cond ((file-exists? f) + (call-with-input-file f (λ (in) (read-json in)))) + (else (make-immutable-hash)))) + |