次の高次関数の同等の式は何ですか? def isRepeated:Boolean = {
prev match {
case Some(a) => a.prev match {
case Some(b) => b.equals(this)
case None => false
}
case None => false
}
case class Book(title: String, authors: List[String], year: Int)
val books: List[Book] = List(
Book("Structure and Interpretation of Computer Programs",
List("Abelson, Harold", "Sussman, Ge
私はハスケルの基礎を学び、プロジェクトのオイラーの簡単なタスクを解決しようとしています:3桁の数字(100.999)の最大の回文を見つけよう。 palindrome = maximum $ filter (\a -> reverse a == a) $
map show [ x*y :: Int | x <- [100 .. 999],