4
$\begingroup$

I've seen suggestions that speed up WL code by 1000s - I may not understand them...

I noticed the WolframLanguageData function the other day and thought it would be interesting to see what functions SW thought were adequate for the v1 release.

I interrupted my first Select attempt after a minute or two suspecting I had messed up:

Select[WolframLanguageData[#, "VersionIntroduced"] == 1 &][
 WolframLanguageData[]]

but the following code indicates that my Select query would take well over 10 mins on my machine:

WolframLanguageData[#, "VersionIntroduced"] & /@ 
  RandomSample[WolframLanguageData[], 10] // Timing
(* {1.55092, {1, 2, 7, 8, 3, 9, 9, 11, 3, 11.2}} *)

I guess I'm phoning home to the data repositories but it seems to take a lot more time than I would expect.

Any hints?

$\endgroup$
5
$\begingroup$

You may use EntityClass with EntityList.

EntityList@
  EntityClass["WolframLanguageSymbol", {"VersionIntroduced" -> 1}] // Short

Mathematica graphics

Hope this helps.

$\endgroup$
  • $\begingroup$ certainly did - cheers. $\endgroup$ – Joe Jun 30 '18 at 3:12
  • $\begingroup$ @Joe Also of note, you can just pull the name (or other properties) if you use EntityValue on the EntityClass. That way you don’t have to pass the full EntityList to the API call. $\endgroup$ – b3m2a1 Jun 30 '18 at 19:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.