Loop list without using iterative functions such as map

Hi all,

I am new to DAML. I am studying on the DAML Fundamentals online course. I don’t have any idea on the question, as recapped:

Could you guys please giving hints on it?

Thanks.

Hello @kcleung

This problem can be solved using map function which is discussed in a lesson on iterative control flow. However, since the lesson for this lab is about data types such as lists, you need to focus on using just those data types and their functions. A hint could be to extract the first tuple from the list, extract the first element from the tuple to get the first note. Then do the same for the second note, and so on. Add these notes to make a list of notes. Hope that helps!

Happy Damling :grin:

1 Like