From 294370d0663d576a6d37a80bc8fe5cf9f9ebf7b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 13 Jul 2020 15:47:54 +0200 Subject: "Improve" gensym. --- static/script.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'static/script.js') diff --git a/static/script.js b/static/script.js index d9f85aa6..e9826277 100644 --- a/static/script.js +++ b/static/script.js @@ -34,11 +34,7 @@ function decimal_time_to_date (time, date) { } /* if only there was such a thing as a let to wrap around my lambda... */ -let gensym = (function(counter) { - return function gensym (prefix="gensym") { - return prefix + ++counter; - } -})(0); +const gensym = (counter => (prefix="gensym") => prefix + ++counter)(0) /* start and end time for calendar page */ let start_time = new Date(); -- cgit v1.2.3