Permalink
Browse files

The answer shouldn't be supplied in an example. (#30)

  • Loading branch information...
matthedude authored and raulraja committed Aug 30, 2016
1 parent 3033aab commit 20fa663e826fd316be20c685fc2296efac9429bf
Showing with 1 addition and 8 deletions.
  1. +1 −8 src/main/scala/shapeless/PolyExercises.scala
@@ -33,14 +33,7 @@ object PolyExercises extends FlatSpec with Matchers with org.scalaexercises.defi
}
/** Being polymorphic, they may be passed as arguments to functions or methods and then applied to values of different types
* within those functions,
*
* {{{
* scala> def pairApply(f: Set ~> Option) = (f(Set(1, 2, 3)), f(Set('a', 'b', 'c')))
* pairApply: (f: shapeless.poly.~>[Set,Option])(Option[Int], Option[Char])
* scala> pairApply(choose)
* res2: (Option[Int], Option[Char]) = (Some(1),Some(a))
* }}}
* within those functions
*/
def exercisePairApply(res0: Option[Int], res1: Option[Char]) = {
def pairApply(f: Set ~> Option) = (f(Set(1, 2, 3)), f(Set('a', 'b', 'c')))

0 comments on commit 20fa663

Please sign in to comment.