We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3afab48 commit 2cb42f5Copy full SHA for 2cb42f5
studio-common/src/Data/Petrinet/Representation/Marking.purs
@@ -6,6 +6,7 @@ module Data.Petrinet.Representation.Marking
6
, toUnfoldable
7
, tokensAt
8
, findTokens
9
+ , emptyMarking
10
) where
11
12
import Prelude hiding ((-))
@@ -39,6 +40,9 @@ toMap (BagF dict) = dict
39
40
tokensAt :: forall a n. Ord a => BagF a n -> a -> Maybe n
41
tokensAt = Bag.lookup'
42
43
+emptyMarking :: ∀ a n. BagF a n
44
+emptyMarking = BagF Map.empty
45
+
46
--------------------------------------------------------------------------------
47
48
findTokens
0 commit comments