Skip to content

Commit 6aba463

Browse files
Remove sequence-comprehensions page
(It's absent from the ensligh website)
1 parent 22f3e07 commit 6aba463

17 files changed

+17
-278
lines changed

_ba/tour/tour-of-scala.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ koji se koriste u dosta funkcionalnih programskih jezika.
3535
Nadalje, Scalin mehanizam podudaranja uzoraka (pattern-matching) prirodno podržava [procesiranje XML podataka](xml-processing.html)
3636
pomoću [desno-ignorišućih uzoraka sekvenci](regular-expression-patterns.html),
3737
i generalnim proširivanjem s [ekstraktor objektima](extractor-objects.html).
38-
U ovom kontekstu, [komprehensije sekvenci](sequence-comprehensions.html) su korisne za izražavanje upita (query).
38+
U ovom kontekstu, komprehensije sekvenci su korisne za izražavanje upita (query).
3939
Ove mogućnosti čine Scalu idealnom za razvijanje aplikacija kao što su web servisi.
4040

4141
## Scala je statički tipizirana (statically typed) ##

_es/tour/compound-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ partof: scala-tour
99
num: 6
1010
language: es
1111

12-
next-page: sequence-comprehensions
12+
next-page: extractor-objects
1313
previous-page: case-classes
1414
---
1515

_es/tour/extractor-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ num: 8
1010
language: es
1111

1212
next-page: generic-classes
13-
previous-page: sequence-comprehensions
13+
previous-page: compound-types
1414
---
1515

1616
En Scala pueden ser definidos patrones independientemente de las clases Caso (en inglés case classes, desde ahora clases Case). Para este fin exite un método llamado `unapply` que proveera el ya dicho extractor. Por ejemplo, en el código siguiente se define el objeto extractor `Twice`

_es/tour/sequence-comprehensions.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

_es/tour/tour-of-scala.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Scala es un lenguaje puramente orientado a objetos en el sentido de que [todo es
2020
## Scala es funcional ##
2121
Scala es también un lenguaje funcional en el sentido que [toda función es un valor](unified_types.html). Scala provee una [sintaxis ligera](anonymous-function-syntax.html) para definir funciones anónimas. Soporta [funciones de primer orden](higher-order-functions.html), permite que las funciones sean [anidadas](nested-functions.html), y soporta [currying](currying.html). Las [clases caso](case-classes.html) de Scala y las construcciones incorporadas al lenguaje para [reconocimiento de patrones](pattern-matching.html) modelan tipos algebráicos usados en muchos lenguajes de programación funcionales.
2222

23-
Además, la noción de reconocimiento de patrones de Scala se puede extender naturalmente al [procesamiento de datos XML](xml-processing.html) con la ayuda de [patrones de expresiones regulares](regular-expression-patterns.html). En este contexto, [seq comprehensions](sequence-comprehensions.html) resultan útiles para formular consultas. Estas características hacen a Scala ideal para desarrollar aplicaciones como Web Services.
23+
Además, la noción de reconocimiento de patrones de Scala se puede extender naturalmente al [procesamiento de datos XML](xml-processing.html) con la ayuda de [patrones de expresiones regulares](regular-expression-patterns.html). En este contexto, seq comprehensions resultan útiles para formular consultas. Estas características hacen a Scala ideal para desarrollar aplicaciones como Web Services.
2424

2525
## Scala estáticamente tipado ##
2626
Scala cuenta con un expresivo sistema de tipado que fuerza estáticamente las abstracciones a ser usadas en una manera coherente y segura. En particular, el sistema de tipado soporta:

_ko/tour/extractor-objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ partof: scala-tour
99
num: 15
1010
language: ko
1111

12-
next-page: sequence-comprehensions
12+
next-page: generic-classes
1313
previous-page: regular-expression-patterns
1414
---
1515

@@ -19,7 +19,7 @@ previous-page: regular-expression-patterns
1919
def apply(x: Int): Int = x * 2
2020
def unapply(z: Int): Option[Int] = if (z%2 == 0) Some(z/2) else None
2121
}
22-
22+
2323
object TwiceTest extends App {
2424
val x = Twice(21)
2525
x match { case Twice(n) => Console.println(n) } // prints 21

_ko/tour/generic-classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ num: 17
1010
language: ko
1111

1212
next-page: variances
13-
previous-page: sequence-comprehensions
13+
previous-page: extractor-objects
1414
---
1515

1616
자바 5(다른 이름은 [JDK 1.5](http://java.sun.com/j2se/1.5/))와 같이, 스칼라는 타입으로 파라미터화된 클래스의 빌트인 지원을 제공한다. 이런 제네릭 클래스는 특히 컬렉션 클래스의 개발에 유용하다. 이에 관한 예제를 살펴보자.
@@ -42,4 +42,4 @@ previous-page: sequence-comprehensions
4242

4343
_주의: 제네릭 클래스의 서브타입은 *불가변*이다. 즉, 캐릭터 타입의 스택인 `Stack[Char]`를 정수형 스택인 `Stack[Int]`처럼 사용할 수는 없다. 실제로 캐릭터 스택에는 정수가 들어가기 때문에 이런 제약은 이상하게 보일 수도 있다. 결론적으로 `S = T`일 때만 `Stack[T]``Stack[S]`의 서브타입일 수 있으며, 반대의 관계도 마찬가지로 성립해야 한다. 이런 특징이 상당히 큰 제약일 수 있기 때문에, 스칼라는 제네릭 타입의 서브타입을 지정하는 행위를 제어하기 위해 [타입 파라미터 어노테이션 방법](variances.html)을 제공한다._
4444

45-
윤창석, 이한욱 옮김
45+
윤창석, 이한욱 옮김

_ko/tour/sequence-comprehensions.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

_ko/tour/tour-of-scala.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ next-page: unified-types
2020
## 스칼라는 함수형이다 ##
2121
또한, 스칼라는 [모든 함수가 값](unified-types.html)이라는 측면에서 함수형 언어다. 스칼라는 익명 함수를 위한 [경량 구문](anonymous-function-syntax.html)을 제공하고, [고차 함수](higher-order-functions.html)를 지원하며, 함수의 [중첩](nested-functions.html)을 허용하고, [커링](currying.html)을 지원한다. 스칼라의 [케이스 클래스](case-classes.html)와 케이스 클래스의 [패턴 매칭](pattern-matching.html) 빌트인 지원을 통해 여러 함수형 프로그래밍 언어에서 사용되는 대수 타입을 만들 수 있다.
2222

23-
뿐만 아니라 스칼라의 패턴 매칭 개념은 [우측 무시 시퀀스 패턴](regular-expression-patterns.html)의 도움을 받아 자연스럽게 [XML 데이터의 처리](xml-processing.html)로 확장된다. 이런 맥락에서 [시퀀스 컴프리헨션](sequence-comprehensions.html) 쿼리를 만들 때 유용하다. 이런 기능 때문에 스칼라는 웹 서비스와 같은 애플리케이션 개발에 있어서 이상적인 선택이 될 수 있다.
23+
뿐만 아니라 스칼라의 패턴 매칭 개념은 [우측 무시 시퀀스 패턴](regular-expression-patterns.html)의 도움을 받아 자연스럽게 [XML 데이터의 처리](xml-processing.html)로 확장된다. 이런 맥락에서 시퀀스 컴프리헨션은 쿼리를 만들 때 유용하다. 이런 기능 때문에 스칼라는 웹 서비스와 같은 애플리케이션 개발에 있어서 이상적인 선택이 될 수 있다.
2424

2525
## 스칼라는 정적 타입이다 ##
2626
스칼라는 안전하고 일관성 있는 추상화를 정적으로 강제하는 풍부한 타입 시스템을 장착하고 있다. 특히 타입 시스템은 다음과 같은 사항을 지원한다.
2727

2828
* [제네릭 클래스](generic-classes.html)
2929
* [가변성 어노테이션](variances.html)
3030
* [상위 타입 경계](upper-type-bounds.html)[하위 타입 경계](lower-type-bounds.html)
31-
* 객체 멤버로써의 [내부 클래스](inner-classes.html)[추상 타입](abstract-types.html)
31+
* 객체 멤버로써의 [내부 클래스](inner-classes.html)[추상 타입](abstract-types.html)
3232
* [합성 타입](compound-types.html)
3333
* [명시적으로 타입이 지정된 자기 참조](explicitly-typed-self-references.html)
3434
* [](views.html)

_pl/tour/extractor-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ partof: scala-tour
88

99
num: 15
1010
language: pl
11-
next-page: sequence-comprehensions
11+
next-page: generic-classes
1212
previous-page: regular-expression-patterns
1313
---
1414

_pl/tour/generic-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ partof: scala-tour
99
num: 17
1010
language: pl
1111
next-page: variances
12-
previous-page: sequence-comprehensions
12+
previous-page: extractor-objects
1313
---
1414

1515
Scala posiada wbudowaną obsługą klas parametryzowanych przez typy. Tego typu klasy generyczne są szczególnie użyteczne podczas tworzenia klas kolekcji.

_pl/tour/sequence-comprehensions.md

Lines changed: 0 additions & 69 deletions
This file was deleted.

_pl/tour/tour-of-scala.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Scala jest czysto obiektowym językiem w tym sensie, że każda [wartość jest
2020
## Scala jest funkcyjna ##
2121
Scala jest też funkcyjnym językiem w tym sensie, że [każda funkcja jest wartością](unified-types.html). Scala dostarcza [lekką składnię](anonymous-function-syntax.html) do definiowana funkcji anonimowych, wspiera [funkcje wyższego rzędu](higher-order-functions.html), pozwala funkcjom, by były [zagnieżdżone](nested-functions.html), a także umożliwia [rozwijanie funkcji](currying.html). [Klasy przypadków](case-classes.html) oraz wbudowane wsparcie dla [dopasowania wzorców](pattern-matching.html) wprowadzają do Scali mechanizm typów algebraicznych stosowany w wielu funkcyjnych językach programowania. [Obiekty singleton](singleton-objects) są wygodną metodą grupowania funkcji, które nie należą do żadnej klasy.
2222

23-
Ponadto mechanizm dopasowania wzorca w naturalny sposób rozszerza się do obsługi [przetwarzania danych w formacie XML](xml-processing.html) z pomocą [wzorców sekwencji ignorujących prawą stronę](regular-expression-patterns.html), z wykorzystaniem rozszerzeń [obiektów ekstraktorów](extractor-objects.html). W tym kontekście [instrukcje for](sequence-comprehensions.html) są użyteczne w formułowaniu zapytań. Ta funkcjonalność sprawia, że Scala jest idealnym językiem do tworzenia aplikacji takich jak usługi sieciowe.
23+
Ponadto mechanizm dopasowania wzorca w naturalny sposób rozszerza się do obsługi [przetwarzania danych w formacie XML](xml-processing.html) z pomocą [wzorców sekwencji ignorujących prawą stronę](regular-expression-patterns.html), z wykorzystaniem rozszerzeń [obiektów ekstraktorów](extractor-objects.html). W tym kontekście instrukcje for są użyteczne w formułowaniu zapytań. Ta funkcjonalność sprawia, że Scala jest idealnym językiem do tworzenia aplikacji takich jak usługi sieciowe.
2424

2525
## Scala jest statycznie typowana ##
2626
Scala posiada ekspresywny system typów zapewniający, że abstrakcje są używane w sposób zgodny oraz bezpieczny. W szczególności system typów wspiera:

_pt-br/tour/extractor-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ discourse: false
77
partof: scala-tour
88

99
num: 15
10-
next-page: sequence-comprehensions
10+
next-page: generic-classes
1111
previous-page: regular-expression-patterns
1212
language: pt-br
1313
---

_pt-br/tour/generic-classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ partof: scala-tour
88

99
num: 17
1010
next-page: variances
11-
previous-page: sequence-comprehensions
11+
previous-page: extractor-objects
1212
language: pt-br
1313
---
1414

@@ -45,4 +45,4 @@ A saída do programa é:
4545
97
4646
1
4747
```
48-
_Nota: subtipos de tipos genéricos são *invariantes*. Isto significa que se tivermos uma pilha de caracteres do tipo `Stack[Char]` então ela não pode ser usada como uma pilha de inteiros do tipo `Stack[Int]`. Isso seria incorreto porque isso nos permitiria inserir inteiros verdadeiros na pilha de caracteres. Para concluir, `Stack[T]` é um subtipo de de `Stack[S]` se e somente se `S = T`. Como isso pode ser bastante restritivo, Scala oferece um [mecanismo de anotação de parâmetro de tipo](variances.html) para controlar o comportamento de subtipo de tipos genéricos._
48+
_Nota: subtipos de tipos genéricos são *invariantes*. Isto significa que se tivermos uma pilha de caracteres do tipo `Stack[Char]` então ela não pode ser usada como uma pilha de inteiros do tipo `Stack[Int]`. Isso seria incorreto porque isso nos permitiria inserir inteiros verdadeiros na pilha de caracteres. Para concluir, `Stack[T]` é um subtipo de de `Stack[S]` se e somente se `S = T`. Como isso pode ser bastante restritivo, Scala oferece um [mecanismo de anotação de parâmetro de tipo](variances.html) para controlar o comportamento de subtipo de tipos genéricos._

0 commit comments

Comments
 (0)