From: Hannu Niemistö Date: Tue, 12 Dec 2017 13:56:49 +0000 (+0200) Subject: Added MMap.clone X-Git-Tag: v1.43.0~136^2~661^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F1317%2F2;p=simantics%2Fplatform.git Added MMap.clone refs #7680 Change-Id: I4ed5c23709f5f0fc02937deba9af0f58eca3ea5d --- diff --git a/bundles/org.simantics.scl.runtime/scl/MMap.scl b/bundles/org.simantics.scl.runtime/scl/MMap.scl index 085728c58..0f050ca76 100644 --- a/bundles/org.simantics.scl.runtime/scl/MMap.scl +++ b/bundles/org.simantics.scl.runtime/scl/MMap.scl @@ -62,6 +62,9 @@ importJava "gnu.trove.map.hash.THashMap" where @JavaName "" createC :: Integer -> T a b + @JavaName "" + clone :: T a b -> T a b + fromEntryList :: [(a,b)] -> T a b fromEntryList l = do result = createC (Prelude.length l)