diff options
| author | Andrey Listopadov <andreyorst@gmail.com> | 2021-03-14 23:58:33 +0300 |
|---|---|---|
| committer | Andrey Listopadov <andreyorst@gmail.com> | 2021-03-14 23:58:33 +0300 |
| commit | 49d4cdcaedb4da26cf40a22f5bb8c1d6f5341c23 (patch) | |
| tree | e8322b057243224395783ee760694892d4ae265a | |
| parent | 66ae6fccc4bfdc8534476626b67fb0387f44468e (diff) | |
fix: avoid passing gsub's extra return values to sym
| -rw-r--r-- | macros.fnl | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -409,10 +409,10 @@ returns the value without additional metadata. (and res (> n 1))))) (fn demethodize [s] - (-> s - tostring - (string.gsub ":" ".") - sym)) + (let [s (-> s + tostring + (string.gsub ":" "."))] + (sym s))) (fn fn* [name doc? ...] "Create (anonymous) function of fixed arity. |