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=f61df38865dea9c0c75060730e20c97ebfa730fe;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)