Skip to content

Commit 2cb42f5

Browse files
committed
[#328] [studio-common] empty marking
1 parent 3afab48 commit 2cb42f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: studio-common/src/Data/Petrinet/Representation/Marking.purs

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module Data.Petrinet.Representation.Marking
66
, toUnfoldable
77
, tokensAt
88
, findTokens
9+
, emptyMarking
910
) where
1011

1112
import Prelude hiding ((-))
@@ -39,6 +40,9 @@ toMap (BagF dict) = dict
3940
tokensAt :: forall a n. Ord a => BagF a n -> a -> Maybe n
4041
tokensAt = Bag.lookup'
4142

43+
emptyMarking :: a n. BagF a n
44+
emptyMarking = BagF Map.empty
45+
4246
--------------------------------------------------------------------------------
4347

4448
findTokens

0 commit comments

Comments
 (0)