Use Cursor.Seek() in LastN method of the List struct instead of ForEach to get to the n element and fetch the n last elements
Use Cursor.Seek() in LastN method of the List struct instead of ForEach to get to the n element and fetch the n last elements

xyproto/simplebolt