# Get the second element in a list of tuples?

**URL:** <https://forum.canton.network/t/get-the-second-element-in-a-list-of-tuples/6636>\
**Category:** App Development\
**Tags:** daml\
**Created:** [June 3, 2023, 12:38am UTC](https://forum.canton.network/t/get-the-second-element-in-a-list-of-tuples/6636 "2023-06-03T00:38:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [June 4, 2023, 11:33am UTC](https://forum.canton.network/t/get-the-second-element-in-a-list-of-tuples/6636/2 "2023-06-04T11:33:22Z")

</div>

The `snd` function returns the second item in a tuple ([docs](https://docs.daml.com/daml/stdlib/Prelude.html#function-da-internal-prelude-snd-88623)).

The following should do what you are looking for.

```haskell
let payoutAmt = betPayload.betSlip.wager * (snd payoutRate)

```

One feature of the [docs.daml.com](http://docs.daml.com) that I like particularly is looking for a function by signature: if you type `(a, b) -> b` in the search bar, you will find what you are looking for. In my example `a` and `b` are generic types, but searching by signature is smart enough to deal with generic types, so looking for `(Text, Numeric 2) -> Numeric 2` will still return the answer you are looking for (even though `snd` is more generic than that).

---

_[View the full topic](https://forum.canton.network/t/get-the-second-element-in-a-list-of-tuples/6636)._
