Include Iron in your project using your preferred build tool.
libraryDependencies += "io.github.iltotore" %% "iron" % "version"
The following import is often used:
This import contains bases to make Iron work including:
- Implicit conversion from raw type to its refined form (aka auto refinement)
- Utility methods
- Common constraints from package
Standard constraints are split in different objects stored in the package
For example, you can import standard number-related constraints using:
When having multiple imports from Iron, this style is often preferred in Iron codebase or documentation:
import io.github.iltotore.iron.* import io.github.iltotore.iron.constraint.all.*
You can find the list of all standard constraints in the constraint package summary.
Now that you know how to import Iron in your project, you should check the references: