From 73beef1921e28061517db71864796959f7e36a92 Mon Sep 17 00:00:00 2001 From: "Aaron S. Hawley" Date: Tue, 8 Aug 2017 10:15:01 -0400 Subject: [PATCH 1/2] Fix broken links to "Anonymous function syntax" --- _tour/tour-of-scala.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/tour-of-scala.md b/_tour/tour-of-scala.md index a683c21bc7..a73e0a4e26 100644 --- a/_tour/tour-of-scala.md +++ b/_tour/tour-of-scala.md @@ -19,7 +19,7 @@ Scala is a modern multi-paradigm programming language designed to express common Scala is a pure object-oriented language in the sense that [every value is an object](unified-types.html). Types and behavior of objects are described by [classes](classes.html) and [traits](traits.html). Classes are extended by subclassing and a flexible [mixin-based composition](mixin-class-composition.html) mechanism as a clean replacement for multiple inheritance. ## Scala is functional ## -Scala is also a functional language in the sense that [every function is a value](unified-types.html). Scala provides a [lightweight syntax](anonymous-function-syntax.html) for defining anonymous functions, it supports [higher-order functions](higher-order-functions.html), it allows functions to be [nested](nested-functions.html), and supports [currying](currying.html). Scala's [case classes](case-classes.html) and its built-in support for [pattern matching](pattern-matching.html) model algebraic types used in many functional programming languages. [Singleton objects](singleton-objects.html) provide a convenient way to group functions that aren't members of a class. +Scala is also a functional language in the sense that [every function is a value](unified-types.html). Scala provides a [lightweight syntax](basic.html#functions) for defining anonymous functions, it supports [higher-order functions](higher-order-functions.html), it allows functions to be [nested](nested-functions.html), and supports [currying](currying.html). Scala's [case classes](case-classes.html) and its built-in support for [pattern matching](pattern-matching.html) model algebraic types used in many functional programming languages. [Singleton objects](singleton-objects.html) provide a convenient way to group functions that aren't members of a class. Furthermore, Scala's notion of pattern matching naturally extends to the [processing of XML data](xml-processing.html) with the help of [right-ignoring sequence patterns](regular-expression-patterns.html), by way of general extension via [extractor objects](extractor-objects.html). In this context, [for comprehensions](for-comprehensions.html) are useful for formulating queries. These features make Scala ideal for developing applications like web services. From a33aa5f2a5d204a29287c875058683984af39fd7 Mon Sep 17 00:00:00 2001 From: "Aaron S. Hawley" Date: Tue, 8 Aug 2017 12:53:30 -0400 Subject: [PATCH 2/2] Remove broken link to "Anonymous function syntax" --- _tour/basics.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/_tour/basics.md b/_tour/basics.md index a7cc3b053c..37510230f7 100644 --- a/_tour/basics.md +++ b/_tour/basics.md @@ -130,8 +130,6 @@ val getTheAnswer = () => 42 println(getTheAnswer()) // 42 ``` -We will cover functions in depth [later](anonymous-function-syntax.html). - ## Methods Methods look and behave very similar to functions, but there are a few key differences between them.