liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 43612af71afa43894a9e5d7451f396242506bbb6
parent 5695c47496f815b0c66ee342f2c167da746b6eee
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 24 Aug 2024 13:56:54 +0100

anoia: %% is alias for string.formt

Diffstat:
Mpkgs/anoia/init.fnl | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/pkgs/anoia/init.fnl b/pkgs/anoia/init.fnl @@ -88,6 +88,8 @@ ;; return s:sub(1, #s-pad) .. rep('=', pad) ;; end +(fn %% [fmt ...] (string.format fmt ...)) + (fn base64url [s] "URL-safe Base64-encoded form of s (no trailing padding)" (let [pad (- 2 (% (- (# s) 1) 3)) @@ -118,4 +120,5 @@ : split : system : table= + : %% }