Skip to content

Instantly share code, notes, and snippets.

@jasondown
Last active December 30, 2018 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasondown/17dbf93c24bfc4acca65711a37793712 to your computer and use it in GitHub Desktop.
Save jasondown/17dbf93c24bfc4acca65711a37793712 to your computer and use it in GitHub Desktop.
type MoleculeStorage =
{ Counts : Map<MoleculeType, int> }
static member Create (token : Token) =
{ Counts =
Map [ (MoleculeType.A, (int <| token.[0]))
(MoleculeType.B, (int <| token.[1]))
(MoleculeType.C, (int <| token.[2]))
(MoleculeType.D, (int <| token.[3]))
(MoleculeType.E, (int <| token.[4])) ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment