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:lab6 [2016/07/04 19:08]
dciocirlan [Practice]
sesiuni:scala:lab6 [2016/07/04 20:07] (current)
dciocirlan
Line 36: Line 36:
       * ''​toList''​       * ''​toList''​
       * ''​size''​       * ''​size''​
-    * create two case subclasses: ''​Just[A]''​ and ''​None''​ and implement the methods +    * create two case subclasses: ''​Just[A]''​ and ''​Empty''​ and implement the methods 
-      * what is None, actually? a case class? a case object?+      * what is ''​Empty''​, actually? a case class? a case object?
       * methods should be quick to write and probably take two lines of code, at most       * methods should be quick to write and probably take two lines of code, at most
   - An equivalent to Scala'​s ''​Try''​ monad, call this ''​Attempt[A]''​.   - An equivalent to Scala'​s ''​Try''​ monad, call this ''​Attempt[A]''​.
sesiuni/scala/lab6.txt · Last modified: 2016/07/04 20:07 by dciocirlan