I am trying to revive some code from 2015 (version 10?) which uses the function ToList. I can not find it defined in any notebook on my system (in fact, it only appears in this one notebook). I had loaded the GeneralUtilities package in this notebook, so maybe ToList was defined in a previous version of that. From the context of its usage, it appears to force its arguments to be a list, but only if the argument is not already a list, like:
ToList[x_List] := x;
ToList[x__] := {x};
Does anybody remember this function?
?Developer`ToListbut remains unevaluated for any argument. – george2079 Apr 05 '18 at 21:52GeneralUtilities`ToListexisted in 10.0 and 10.1, but was moved into theDevelopercontext in 10.2. TheGeneralUtilitiesversion only accepted exactly one argument, but theDeveloperversion accepts any number of arguments (including zero) and concatenates any explicit list arguments. – WReach Apr 05 '18 at 22:18GeneralUtilities\PrintDefinitions[Developer`ToList](see [(1742)](https://mathematica.stackexchange.com/a/78898/11035)) to see that the current version ofToList` has only one definition yet accepts arbitrarily many arguments (including zero). – jjc385 Apr 06 '18 at 09:42