Advertisement
Guest User

Untitled

a guest
Mar 10th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.41 KB | None | 0 0
  1.  implicit val stringToStrings = new ToAst[String] {
  2.     type TypeMember = Strings
  3.   }
  4.  
  5.    implicit def toFunctional[T](seq: Sequence[T])(implicit ast: ToAst[T]) = new ToFunctional[T, ast.TypeMember, Typed](seq)
  6.  
  7. // trying to rewrite to
  8.  
  9.  
  10.  implicit val stringToStrings = new ToAst[String,Strings]
  11.  implicit def toFunctional[T](seq: Sequence[T])(implicit ast: ToAst[T,Ast]) = new ToFunctional[T, Ast, Typed](seq)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement