🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators last
This page was created by Alexandra on 2017-08-13. Last edited by 62.169.16.147 on 2026-09-12.

last () : T

Returns the last element in the list operated on. The operand will be converted to a list prior to evaluating the operation.

Expression Result
OrderedSet{1, 2.0, '3'}->last() '3'

Example[edit source]

Given a Class of Fruit

Fruit.allinstances->last

This is return the last element.