]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/scl/Prelude.scl
New method to Prelude: indexSet
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / Prelude.scl
index d5d2788285d45a30c815a303be8937dd5f60ad68..32582affa867947fbac5167b94c4d8919c0bd91c 100644 (file)
@@ -1965,6 +1965,11 @@ importJava "org.simantics.scl.runtime.Lists" where
     """
     index :: [(a,b)] -> a -> Maybe b
     
+    """
+    Given a list of elements, the function produces its characteristic function.
+    """
+    indexSet :: [a] -> a -> Boolean
+    
     """
     Given a list of values and a function computing a key for each value, the function produces a function that finds a value
     effeciently for the given key.