Skip to content

Option.flatten utility function#20

Open
dbidwell94 wants to merge 2 commits intomasterfrom
flatten
Open

Option.flatten utility function#20
dbidwell94 wants to merge 2 commits intomasterfrom
flatten

Conversation

@dbidwell94
Copy link
Owner

This PR adds an Option.flatten utility function, which aims to make the process of checking a deeply nested Option easier by making the parent Option None if any of the nested Option values are None, and Some if all of the nested Option values are Some

@dbidwell94
Copy link
Owner Author

Coverage after merging flatten into master

99.23%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   index.tsN/A100%100%
src.option
   index.tsN/A100%98.55%12
src.result
   index.tsN/A100%100%

@dbidwell94
Copy link
Owner Author

Coverage after merging flatten into master

100.00%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   index.tsN/A100%100%
src.option
   index.tsN/A100%100%
src.result
   index.tsN/A100%100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant