How to get all values from list

Hi,

I’m using Gatling 2.0.0-SNAPSHOT, my regex returns list of values:
.check(regex(""“hdnUser” value="([\w=/.\d_%±.]*)"""").findAll.saveAs(“hdnUser”))

Below just print first item:
.exec(session => {
println(session(“SiteCollection”).as[String])
session
})

How can I loop all items to get values in the list? and how to get a value by index?

Thanks in advance

How can I loop all items to get values in the list?

https://github.com/excilys/gatling/blob/master/src/sphinx/general/scenario.rst#foreach

and how to get a value by index?

https://github.com/excilys/gatling/blob/master/src/sphinx/session/expression_el.rst#expression-language

Thanks Stéphane,
It worked with this:
var users = session(“hdnUser”).as[Seq[String]]
users.foreach(user => {
println(user)
})