HP Forums
Function factory function, and other undocumented functions - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Function factory function, and other undocumented functions (/thread-12867.html)



Function factory function, and other undocumented functions - fakuivan - 04-25-2019 04:09 PM

I recall once seeing a function that you could pass a vector of arguments and an expression, and it would return a function object, built using said parameters. Does anyone know the name for it?

There are a couple of functions I was able to find, but there's no documentation written for them, like ``bloc`` and ``backquote``. Is there any way I can extract the name of these functions without disassembling the firmware blobs?


RE: Function factory function, and other undocumented functions - fakuivan - 04-25-2019 10:55 PM

I was able to find the function name by reading the firmware blob using a simple regex pattern and a text editor. The function name is "program". From what I can see the function can be called like this ``program(<[arg1, arg2, ...]>, <idk what this does>, <function body>)``.

[attachment=7183]