Skip to content
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
Closed

add support for min and max to Alloy generator #79

mantkiew opened this issue Nov 20, 2015 · 0 comments
Assignees
Milestone

Comments

@mantkiew
Copy link
Member

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 mantkiew closed this as completed Dec 2, 2015
@mantkiew mantkiew mentioned this issue Dec 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant