Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sesiuni:scala:lab8 [2016/07/06 18:54]
ataleanu [Practice]
sesiuni:scala:lab8 [2016/07/06 18:55] (current)
dciocirlan [Practice]
Line 25: Line 25:
     * Add the ''​gcd''​ method to ''​RichInteger''​. It should receive another y parameter of type ''​Int''​ and compute the greatest common divisor of the two.     * Add the ''​gcd''​ method to ''​RichInteger''​. It should receive another y parameter of type ''​Int''​ and compute the greatest common divisor of the two.
     * Test the new magic methods you just created.     * Test the new magic methods you just created.
-  - Define a data type for {{http://​semver.org/|semantic versioning}}.+  - Define a data type for {{http://​semver.org |semantic versioning}}.
     * Use a case class and name it ''​Version''​. It should have 3 fields, all integers: ''​major'',​ ''​minor''​ and ''​patch''​.     * Use a case class and name it ''​Version''​. It should have 3 fields, all integers: ''​major'',​ ''​minor''​ and ''​patch''​.
     * Define the ''<''​ operator on the new data type.     * Define the ''<''​ operator on the new data type.
sesiuni/scala/lab8.txt · Last modified: 2016/07/06 18:55 by dciocirlan