Get the minimum value published by an expression.

def minPub(f) = minimum(collect(f))

def example() = 3 | 0 | 2 | 1 | 4
minPub(example)

This implementation uses collect to collect all of the publications into a list, then finds the minimum value of the list.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 30-Oct-2008 23:04 by David