learning-fpinscala icon indicating copy to clipboard operation
learning-fpinscala copied to clipboard

Functional Programming in Scala 一书的示例代码、练习题答案

Results 2 learning-fpinscala issues
Sort by recently updated
recently updated
newest added

```scala def hasSubsequence[A](xs: List[A], sub: List[A]): Boolean = (xs, sub) match { case (_, Nil) ⇒ true case (Cons(h1, t1), Cons(h2, t2)) if h1 == h2 ⇒ startWith(t1, t2) case...

http://chris-taylor.github.io/blog/2013/02/10/the-algebra-of-algebraic-data-types/

函数式