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

Closed
mantkiew opened this Issue Nov 20, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@mantkiew
Copy link
Member

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

Merged

Release 0.4.3 #81

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