Matthew F Posted January 3, 2013 Posted January 3, 2013 I am interested in creating a custom function that would allow a user to apply a function to every value in a list. It would look something like this: applyFunction2List ( myList ; "function" ) ... where 'myList' is a text field with return-delimited values, and "function" is a text expression of a user-specfied function. For example, applyFunction2List ("1¶2¶3" ; "[value] * 2" ) would return: "2¶4¶6" I've tried working and modifying CustomFunction() and SubstituteManyWithCalclation(), without much success, but I admit I'm baffled by recursive functions. Any tips would be appreciated.
jbante Posted January 3, 2013 Posted January 3, 2013 I've written some functions that do this, ForEach and ForEach (non-recursive). You can reference these while writing your own, or just use mine. If you find anything I can improve, or want some clarification, please let me know. 1
Matthew F Posted January 4, 2013 Author Posted January 4, 2013 Amazing. Exactly what I was looking for, and beautifully documented. Thank you very much for sharing this.
Recommended Posts
This topic is 4605 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now