Carrot reference
Methods

.unique()

This method returns unique elements from a list or sequence.

Syntax

list.unique()

  • Returns a List of the elements in the list, filtered down to only its unique elements.

list.unique{expression}

  • Returns a List of the elements in the list with the given expression applied to each element, and then filtered down to be unique. Functionally equivalent to: list.map{expression}.unique()

Sample usage

  • underJobs.unique{department} - Returns the unique set of departments that the current job manages