ocaml using List.map iterate over list -


Is there a way to repeat the list in the list through the list?

I know that list. The map takes a single function and a list and creates a list that applies to all the elements but what if I have a list of functions to list the list and prepare the list list?

Your question is not very clear, although I understand it, you have a list of tasks and A list of values, if you want to apply all the elements to all the elements then you can write it:

  (* // A nested list for each element (the result of all functions) To get) * List.map (funny element -> list.map (funny -> element element) functions for each function To get the list of listings (results of all elements) *) List. Map (Interesting F -> List Map. (Interesting Element -> Elements Elements) Inputs  

If you do not want to do this, can you try to clarify the question (perhaps some solid examples will help)?


Comments