Skip to main content
8 events
when toggle format what by license comment
Jun 18, 2024 at 5:30 vote accept CommunityBot
Jun 17, 2024 at 16:08 comment added Domen @MichaelE2, yeah, sorry, it's the same for me actually (I wasn't paying enough attention before). I guess calling FindSequenceFunction[] doesn't load the function, because it immediately throws the FindSequenceFunction::argm, so you have to actually use valid syntax, like FindSequenceFunction[{}], for it to get loaded ...
Jun 17, 2024 at 16:02 comment added Michael E2 @Domen I have to execute GeneralUtilities`PrintDefinitions[FindSequenceFunction] twice on a fresh kernel, if I do FindSequenceFunction[] first. But if I execute FindSequenceFunction[{}] first, then I can print the definitions on the first try. (V14.0.0 Mac ARM). Odd. Often just executing the head symbol loads the internal package for other function.
Jun 17, 2024 at 15:36 comment added Jie Zhu @Domen Got it, thank you!
Jun 17, 2024 at 15:25 comment added Domen No, it's not about the ReadProtected attribute. It's the fact that you have to use this function at least once before in a kernel session so that it gets loaded (it's not automatically loaded). In a fresh kernel, you can just do for example FindSequenceFunction[]; GeneralUtilities`PrintDefinitions[FindSequenceFunction].
Jun 17, 2024 at 15:13 comment added Jie Zhu @Domen FindSequenceFunction has the attribute ReadProtected, so without unsetting this attribute, GeneralUtilities`PrintDefinitions[FindSequenceFunction] returns nothing.
Jun 17, 2024 at 15:10 comment added Domen You don't actually need any Unprotect, just do GeneralUtilities`PrintDefinitions[FindSequenceFunction].
Jun 17, 2024 at 14:44 history answered Jie Zhu CC BY-SA 4.0