# \#list

**URL:** https://forum.canton.network/tag/list/244.md

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

---

## [Loop list without using iterative functions such as map](https://forum.canton.network/t/loop-list-without-using-iterative-functions-such-as-map/6460)

<div class="topic-metadata">

**Author:** [@kcleung](https://forum.canton.network/u/kcleung)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 2:40pm UTC](https://forum.canton.network/t/loop-list-without-using-iterative-functions-such-as-map/6460 "2023-04-20T14:40:08Z")

</div>

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.

---

## [How to get the ContractId of contracts that are stored in a list](https://forum.canton.network/t/how-to-get-the-contractid-of-contracts-that-are-stored-in-a-list/4160)

<div class="topic-metadata">

**Author:** [@cohen.avraham](https://forum.canton.network/u/cohen.avraham)\
**Replies:** 6\
**Last updated:** [April 1, 2022, 1:13pm UTC](https://forum.canton.network/t/how-to-get-the-contractid-of-contracts-that-are-stored-in-a-list/4160 "2022-04-01T13:13:01Z")

</div>

G-d willing Continuing from my previous question regarding sorting, I would like to know how can I get the id of every contract. I have a list of \[ContractId TemplateA\] This template has a price field of type Decimal. …

---

## [Map over list with running index](https://forum.canton.network/t/map-over-list-with-running-index/3317)

<div class="topic-metadata">

**Author:** [@georg](https://forum.canton.network/u/georg)\
**Replies:** 2\
**Last updated:** [October 18, 2021, 7:09pm UTC](https://forum.canton.network/t/map-over-list-with-running-index/3317 "2021-10-18T19:09:02Z")

</div>

I couldn’t find any function that allows me to map over a list with the second argument for the function being the index of the element. In other languages this is sometimes known as mapi. Is there anything like that in …
