Skip to content
CCPEDIAby Unity Nodes
App Development

Loop list without using iterative functions such as map

2 posts235 views1 likesLast activity Apr 2023

  1. kcleungOP

    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.

  2. Neelam_Dwivedi 1

    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: