Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Loop list without using iterative functions such as mapForum ↗

Loop list without using iterative functions such as map

App Development2 posts216 views1 likesLast activity Apr 2023
KC
kcleungOP
Apr 2023

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.

NE
Neelam_Dwivedi
Apr 2023

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:

← Back to Discussions