Skip to content

Commit

Permalink
Expanded SkipMissing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Lang committed Mar 28, 2018
1 parent de20cba commit fb2f592
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ForScience/PacletInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name -> "ForScience",
Description -> "Contains various utility functions and styling to make it easier to use MMA for scientific plots",
Creator -> "Lukas Lang & Marc Lehner",
Version -> "0.38.0",
Version -> "0.38.1",
MathematicaVersion -> "11.1+",
Extensions -> {
{ "Documentation", Language -> "English"},
Expand Down
3 changes: 2 additions & 1 deletion ForScience/Util.wl
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ Options[DelayedExport]={PerformanceGoal->"Quality"};


SkipMissing[f_][arg_]:=If[MissingQ@arg,arg,f@arg]
SkipMissing[keys_,f_][arg_]:=If[Or@@(MissingQ@Lookup[arg,#]&/@keys),Missing[],f@arg]
SkipMissing[key_,f_]:=SkipMissing[{key},f]
SkipMissing[keys_List,f_][arg_]:=If[Or@@(MissingQ@Lookup[arg,#]&/@keys),Missing[],f@arg]
SyntaxInformation[SkipMissing]={"ArgumentsPattern"->{_.,_}};


Expand Down

0 comments on commit fb2f592

Please sign in to comment.