Skip to content

Commit

Permalink
move helper function InputFormOfNonStrings[] to Utils` module
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jan 7, 2016
1 parent cec79f7 commit a48eb7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions meta/EWSB.m
Expand Up @@ -51,9 +51,6 @@

Begin["`Private`"];

InputFormOfNonStrings[a_String] := a;
InputFormOfNonStrings[a_] := InputForm[a];

DebugPrint[msg___] :=
If[FlexibleSUSY`FSDebugOutput,
Print["Debug<EWSB>: ", Sequence @@ InputFormOfNonStrings /@ {msg}]];
Expand Down
5 changes: 5 additions & 0 deletions meta/Utils.m
Expand Up @@ -4,6 +4,8 @@
ApplyAndConcatenate::usage = "Applies a function to a list and
concatenates the resulting list.";

InputFormOfNonStrings::usage = "apply InputForm to non-strings";

StringJoinWithSeparator::usage = "Joins a list of strings with a given separator string";

Zip::usage = "Combines two lists to a list of touples.
Expand Down Expand Up @@ -137,6 +139,9 @@ occurrence of the given rule is replaced (if it exists) or added (if
ForceJoin[elem___] :=
Join[Sequence @@ Select[{elem}, (Head[#] === List)&]];

InputFormOfNonStrings[a_String] := a;
InputFormOfNonStrings[a_] := InputForm[a];

End[];

EndPackage[];

0 comments on commit a48eb7b

Please sign in to comment.