Skip to content

Commit

Permalink
Clarify an ADT exercise (#5)
Browse files Browse the repository at this point in the history
Got some good feedback on confusion here.
  • Loading branch information
stephencelis authored Mar 20, 2018
1 parent 5c16053 commit b95995f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ indirect enum List<A> {
*/
// TODO
/*:
5. Can you overload the `*` and `+` infix operators with functions that take any type and build up an algebraic representation using `Pair` and `Either`?
5. Swift allows you to pass types, like `A.self`, to functions that take arguments of `A.Type`. Overload the `*` and `+` infix operators with functions that take any type and build up an algebraic representation using `Pair` and `Either`. Explore how the precedence rules of both operators manifest themselves in the resulting types.
*/
// TODO

0 comments on commit b95995f

Please sign in to comment.