Skip to content

Commit

Permalink
[#328] [studio-common] empty marking
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosh committed Feb 26, 2020
1 parent 77dc921 commit 0eb871f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions studio-common/src/Data/Petrinet/Representation/Marking.purs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Data.Petrinet.Representation.Marking
, toUnfoldable
, tokensAt
, findTokens
, emptyMarking
) where

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

emptyMarking :: a n. BagF a n
emptyMarking = BagF Map.empty

--------------------------------------------------------------------------------

findTokens
Expand Down

0 comments on commit 0eb871f

Please sign in to comment.