New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for min and max to Alloy generator #79

mantkiew opened this Issue Nov 20, 2015 · 0 comments


None yet
1 participant
Copy link

mantkiew commented Nov 20, 2015

The module util/integer contains min and max functions:

/** given a set of integers, return the largest element */
fun max [es: set Int]: lone Int { es - es.^prev }

/** given a set of integers, return the smallest element */
fun min [es: set Int]: lone Int { es - es.^next }

@mantkiew mantkiew self-assigned this Nov 20, 2015

@mantkiew mantkiew added this to the 0.4.3 milestone Nov 20, 2015

mantkiew added a commit that referenced this issue Nov 28, 2015

@mantkiew mantkiew closed this Dec 2, 2015

@mantkiew mantkiew referenced this issue Dec 11, 2015


Release 0.4.3 #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment