From c411ffbcac75373cdc5c58eb1db96af038feb456 Mon Sep 17 00:00:00 2001 From: Tissevert Date: Sun, 2 Oct 2022 19:40:51 +0200 Subject: [PATCH] Finally import id from UnitJS.Fun --- js/Set.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/Set.js b/js/Set.js index 469b679..2a30e9d 100644 --- a/js/Set.js +++ b/js/Set.js @@ -1,12 +1,10 @@ +import id from UnitJS.Fun; + return { make: make, Int: make({toKey: id, ofKey: parseInt}) }; -function id(x) { - return x; -} - function make(type) { type = type ?? {toKey: id, ofKey: id};