Skip to content

Commit b18299b

Browse files
committed
fixed next/previous links in ko tutorials tour
1 parent 0bf835d commit b18299b

30 files changed

+88
-0
lines changed

ko/tutorials/tour/_posts/2017-02-13-abstract-types.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ categories: tour
99
num: 22
1010
outof: 35
1111
language: ko
12+
13+
next-page: compound-types
14+
previous-page: inner-classes
1215
---
1316

1417
스칼라에선 값(생성자 파라미터)과 타입(클래스가 [제네릭](generic-classes.html)일 경우)으로 클래스가 매개변수화된다. 규칙성을 지키기 위해, 값이 객체 멤버가 될 수 있을 뿐만 아니라 값의 타입 역시 객체의 멤버가 된다. 또한 이런 두 형태의 멤버 모두 다 구체화되거나 추상화될 수 있다.

ko/tutorials/tour/_posts/2017-02-13-annotations.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 31
1010
language: ko
11+
12+
next-page: default-parameter-values
13+
previous-page: automatic-closures
1114
---
1215

1316
어노테이션은 메타 정보와 정의 내용을 연결해준다.

ko/tutorials/tour/_posts/2017-02-13-anonymous-function-syntax.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 6
1010
language: ko
11+
12+
next-page: higher-order-functions
13+
previous-page: mixin-class-composition
1114
---
1215

1316
스칼라를 사용하면 비교적 간결한 구문을 통해 익명 함수를 정의할 수 있다. 다음 표현식은 정수의 지정 함수를 만들어준다.

ko/tutorials/tour/_posts/2017-02-13-automatic-closures.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 30
1010
language: ko
11+
12+
next-page: annotations
13+
previous-page: operators
1114
---
1215

1316
스칼라에선 파라미터가 없는 함수의 이름을 메소드의 파라미터로 사용할 수 있다. 이런 메소드가 호출되면 파라미터가 없는 함수의 이름에 해당하는 실제 파라미터를 찾지 않고, 대신 해당 파라미터의 계산을 캡슐화한 무항 함수를 전달하게 된다(소위 말하는 *이름에 의한 호출* 연산).

ko/tutorials/tour/_posts/2017-02-13-case-classes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 10
1010
language: ko
11+
12+
next-page: pattern-matching
13+
previous-page: currying
1114
---
1215

1316
스칼라는 _케이스 클래스_ 개념을 지원한다. 케이스 클래스는 아래와 같은 특징을 가지는 일반 클래스이다.

ko/tutorials/tour/_posts/2017-02-13-classes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 3
1010
language: ko
11+
12+
next-page: traits
13+
previous-page: unified-types
1114
---
1215

1316
스칼라의 클래스는 런타임에 많은 객체로 인스턴스화 될 수 있는 정적 템플릿이다.

ko/tutorials/tour/_posts/2017-02-13-compound-types.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 23
1010
language: ko
11+
12+
next-page: explicitly-typed-self-references
13+
previous-page: abstract-types
1114
---
1215

1316
때론 객체의 타입을 여러 다른 타입의 서브타입으로 표현해야 할 때가 있다. 스칼라에선 *합성 타입(Compound Types)*으로 표현될 수 있는데, 이는 객체 타입들의 교차점을 의미한다.

ko/tutorials/tour/_posts/2017-02-13-currying.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 9
1010
language: ko
11+
12+
next-page: case-classes
13+
previous-page: nested-functions
1114
---
1215

1316
메소드에는 파라미터 목록을 여럿 정의할 수 있다. 파라미터 목록의 수 보다 적은 파라미터로 메소드가 호출되면, 해당 함수는 누락된 파라미터 목록을 인수로 받는 새로운 함수를 만든다.

ko/tutorials/tour/_posts/2017-02-13-default-parameter-values.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 32
1010
language: ko
11+
12+
next-page: named-parameters
13+
previous-page: annotations
1114
---
1215

1316
스칼라는 파라미터에 기본 값을 부여해서 호출자가 해당 파라미터를 생략할 수 있는 편리함을 제공한다.

ko/tutorials/tour/_posts/2017-02-13-explicitly-typed-self-references.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 24
1010
language: ko
11+
12+
next-page: implicit-parameters
13+
previous-page: compound-types
1114
---
1215

1316
확장 가능한 소프트웨어를 개발할 땐 `this` 값의 타입을 명시적으로 선언하는 편이 편리할 수도 있다. 이를 이해하기 위해 스칼라로 작성된 작고 확장 가능한 그래프 데이터 구조를 만들어 보기로 하자.

ko/tutorials/tour/_posts/2017-02-13-extractor-objects.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 15
1010
language: ko
11+
12+
next-page: sequence-comprehensions
13+
previous-page: regular-expression-patterns
1114
---
1215

1316
스칼라에선 캐이스 클래스와 상관 없이 패턴을 정의할 수 있다. 이런 측면에서 추출자라 불리는 unapply라는 이름의 메소드를 정의한다. 예를 들어, 다음의 코드는 추출자 오브젝트 Twice를 정의한다.

ko/tutorials/tour/_posts/2017-02-13-generic-classes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 17
1010
language: ko
11+
12+
next-page: variances
13+
previous-page: sequence-comprehensions
1114
---
1215

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

ko/tutorials/tour/_posts/2017-02-13-higher-order-functions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 7
1010
language: ko
11+
12+
next-page: nested-functions
13+
previous-page: anonymous-function-syntax
1114
---
1215

1316
스칼라는 고차 함수의 정의를 허용한다. 이런 함수는 _다른 함수를 파라미터로 받거나_, 수행의 _결과가 함수다_. 다음과 같은 함수 `apply`는 다른 함수 `f`와 값 `v`를 받아서 함수 `f``v`에 적용한다.

ko/tutorials/tour/_posts/2017-02-13-implicit-parameters.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 25
1010
language: ko
11+
12+
next-page: polymorphic-methods
13+
previous-page: explicitly-typed-self-references
1114
---
1215

1316
_암시적 파라미터_ 를 갖는 메서드 역시 다른 일반적인 메서드와 마찬가지로 인수를 적용할 수 있다. 이런 경우 implicit 키워드는 아무런 영향을 미치지 않는다. 하지만, 이 경우에 암시적 파라미터에 주는 인수를 생략한다면, 그 생략된 인수는 자동적으로 제공될 것이다.

ko/tutorials/tour/_posts/2017-02-13-inner-classes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 21
1010
language: ko
11+
12+
next-page: abstract-types
13+
previous-page: lower-type-bounds
1114
---
1215

1316
스칼라의 클래스는 다른 클래스를 멤버로 가질 수 있다. 자바와 같은 언어의 내부 클래스는 자신을 감싸고 있는 클래스의 멤버인 반면에, 스칼라에선 내부 클래스가 외부 객체의 경계 안에 있다. 이런 차이점을 분명히 하기 위해 그래프 데이터타입의 구현을 간단히 그려보자.

ko/tutorials/tour/_posts/2017-02-13-local-type-inference.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 28
1010
language: ko
11+
12+
next-page: operators
13+
previous-page: polymorphic-methods
1114
---
1215

1316
스칼라는 프로그래머가 특정한 타입 어노테이션을 생략할 수 있도록 해주는 빌트인 타입 추론 기능을 갖추고 있다. 예를 들어, 스칼라에선 컴파일러가 변수의 초기화 표현식으로부터 타입을 추론할 수 있기 때문에 변수의 타입을 지정할 필요가 없을 때가 많다. 또한 메소드의 반환 타입은 본문의 타입과 일치하기 때문에 이 반환 타입 역시 컴파일러가 추론할 수 있고, 주로 생략된다.

ko/tutorials/tour/_posts/2017-02-13-lower-type-bounds.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 20
1010
language: ko
11+
12+
next-page: inner-classes
13+
previous-page: upper-type-bounds
1114
---
1215

1316
[상위 타입 경계](upper-type-bounds.html)가 특정 타입의 서브타입으로 타입을 제한한다면, *하위 타입 경계*는 대상 타입을 다른 타입의 슈퍼타입으로 선언한다. `T>:A`는 타입 파라미터 `T`나 추상 타입 `T`가 타입 `A`의 슈퍼타입임을 나타낸다.

ko/tutorials/tour/_posts/2017-02-13-mixin-class-composition.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 5
1010
language: ko
11+
12+
next-page: anonymous-function-syntax
13+
previous-page: traits
1114
---
1215

1316
_단일 상속_ 만을 지원하는 여러 언어와는 달리, 스칼라는 더욱 일반화된 시각에서 클래스를 재사용한다. 스칼라는 새로운 클래스를 정의할 때 _클래스의 새로운 멤버 정의_ (즉, 슈퍼클래스와 비교할 때 변경된 부분)를 재사용할 수 있다. 이를 _믹스인 클래스 컴포지션_ 이라고 부른다. 이터레이터를 추상화한 다음 예제를 살펴보자.

ko/tutorials/tour/_posts/2017-02-13-named-parameters.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 33
1010
language: ko
11+
12+
previous-page: default-parameter-values
1113
---
1214

1315
메소드와 함수를 호출할 땐 다음과 같이 해당 호출에서 명시적으로 변수의 이름을 사용할 수 있다.

ko/tutorials/tour/_posts/2017-02-13-nested-functions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 8
1010
language: ko
11+
12+
next-page: currying
13+
previous-page: higher-order-functions
1114
---
1215

1316
스칼라에선 중첩 함수를 정의할 수 있다. 다음 오브젝트는 정수의 리스트에서 지정된 값보다 작은 값을 값을 추출해주는 `filter` 함수를 제공한다.

ko/tutorials/tour/_posts/2017-02-13-operators.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 29
1010
language: ko
11+
12+
next-page: automatic-closures
13+
previous-page: local-type-inference
1114
---
1215

1316
스칼라에선 단일 파라미터를 취하는 모든 메소드를 *중위 연산자*로 사용할 수 있다. 다음은 `and``or`, `negate` 등의 세 가지 메소드를 정의하고 있는 클래스 `MyBool`의 정의다.

ko/tutorials/tour/_posts/2017-02-13-pattern-matching.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 11
1010
language: ko
11+
12+
next-page: regular-expression-patterns
13+
previous-page: case-classes
1114
---
1215

1316
스칼라는 범용적 빌트인 패턴 매칭 기능을 제공한다. 이는 우선 매칭 정책에 따라 어떤 종류의 데이터든 매칭할 수 있도록 해준다.

ko/tutorials/tour/_posts/2017-02-13-polymorphic-methods.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 27
1010
language: ko
11+
12+
next-page: local-type-inference
13+
previous-page: implicit-parameters
1114
---
1215

1316
스칼라의 메소드는 값과 타입 모두가 파라미터화 될 수 있다. 클래스 수준에서와 같이, 값 파라미터는 괄호의 쌍으로 묶이며 타입 파라미터는 브래킷의 쌍 안에 위치한다.

ko/tutorials/tour/_posts/2017-02-13-regular-expression-patterns.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 14
1010
language: ko
11+
12+
next-page: extractor-objects
13+
previous-page: pattern-matching
1114
---
1215

1316
## 우측 무시 시퀀스 패턴 ##

ko/tutorials/tour/_posts/2017-02-13-sequence-comprehensions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 16
1010
language: ko
11+
12+
next-page: generic-classes
13+
previous-page: extractor-objects
1114
---
1215

1316
스칼라는 *시퀀스 컴프리헨션(sequence comprehensions)*을 표현하기 위한 간편한 문법을 제공한다. 컴프리헨션은 `for (enumerators) yield e`와 같은 형태를 가지며, 여기서 `enumerators`는 세미콜론으로 구분된 이뉴머레이터들을 뜻한다. *이뉴머레이터*는 새로운 변수를 정의하는 생성자이거나 필터이다. 컴프리헨션은 생성된 각각의 새로운 변수에 대해서 그 몸체인 `e`를 계산하여 그 값들의 시퀀스를 반환한다.

ko/tutorials/tour/_posts/2017-02-13-tour-of-scala.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 1
1010
language: ko
11+
12+
next-page: unified-types
1113
---
1214

1315
스칼라는 정확하고 명쾌하며 타입 세이프한 방식으로 일반적인 유형의 프로그래밍 패턴을 표현하기 위해 설계된 새로운 다중 패러다임 프로그래밍 언어다. 스칼라는 객체지향과 함수형 언어를 자연스럽게 통합해준다.

ko/tutorials/tour/_posts/2017-02-13-traits.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 4
1010
language: ko
11+
12+
next-page: mixin-class-composition
13+
previous-page: classes
1114
---
1215

1316
트레잇은 자바의 인터페이스와 유사하며, 지원되는 메소드의 서명을 지정해 객체의 타입을 정의하는 데 사용한다. 자바와는 달리, 스칼라에선 트레잇의 일부만 구현할 수도 있다. 다시 말해, 일부 메소드를 선택해 기본 구현 내용을 사전에 정의할 수 있다. 클래스와는 달리, 트레잇은 생성자 파라미터를 가질 수 없다.

ko/tutorials/tour/_posts/2017-02-13-unified-types.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 2
1010
language: ko
11+
12+
next-page: classes
13+
previous-page: tour-of-scala
1114
---
1215

1316
자바와는 달리, 스칼라에선 모든 값이 객체다(숫자 값과 함수를 포함해). 스칼라는 클래스 기반이기 때문에 모든 값은 클래스의 인스턴스다. 다음의 다이어그램은 클래스 계층구조를 나타낸다.

ko/tutorials/tour/_posts/2017-02-13-upper-type-bounds.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 19
1010
language: ko
11+
12+
next-page: lower-type-bounds
13+
previous-page: variances
1114
---
1215

1316
스칼라에선 [타입 파라미터](generic-classes.html)[추상 타입](abstract-types.html)의 타입 경계를 제한할 수 있다. 이런 타입 경계는 타입 변수의 콘크리트 값을 제한하고, 해당 타입의 멤버에 관한 정보를 추가할 수도 있다. _상위 타입 경계_ `T <: A`는 타입 변수 `T`를 선언하면서 서브타입 `A`를 참조하고 있다. 다음은 다형성 메소드 `findSimilar`의 구현을 위해 상위 타입 경계를 사용한 예제다.

ko/tutorials/tour/_posts/2017-02-13-variances.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tutorial: scala-tour
88
categories: tour
99
num: 18
1010
language: ko
11+
12+
next-page: upper-type-bounds
13+
previous-page: generic-classes
1114
---
1215

1316
스칼라는 [제네릭 클래스](generic-classes.html)의 타입 파라미터에 관한 가변성 어노테이션을 지원한다. 자바 5(다른 이름은 [JDK 1.5](http://java.sun.com/j2se/1.5/))에선 추상화된 클래스가 사용될 때 클라이언트가 가변성 어노테이션을 결정하지만, 반면에 스칼라는 추상화된 클래스를 정의할 때 가변성 어노테이션을 추가할 수 있다.

0 commit comments

Comments
 (0)