How to get struct in array

@shahryarjb: In my previous answer &Example.sample/2 returns query. Calling &Repo.all/1 on such result should return already list of titles, so you do not need to work on lists and structs to fetch them manually. I think that such query-only way is easier.