Skip to content

Instantly share code, notes, and snippets.

@jasondown
Created December 30, 2018 06:57
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/48b008c35802c056fcd8c7cc3101308a to your computer and use it in GitHub Desktop.
Save jasondown/48b008c35802c056fcd8c7cc3101308a to your computer and use it in GitHub Desktop.
// Robot -> SampleData -> bool
let canMakeSample (robot : Robot) (sample : SampleData) =
sample.Molecules.Counts
|> Map.forall (fun mt count -> robot.Molecules.Counts.[mt] >= count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment