8000 fixed next/previous links in pl tutorials tour · szeiger/scala.github.com@0bf835d · GitHub
[go: up one dir, main page]

Skip to content

Commit 0bf835d

Browse files
committed
fixed next/previous links in pl tutorials tour
1 parent 76d6191 commit 0bf835d

32 files changed

+62
-62
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 22
1010
language: pl
11-
tutorial-next: compound-types
12-
tutorial-previous: inner-classes
11+
next-page: compound-types
12+
previous-page: inner-classes
1313
---
1414

1515
W Scali klasy są parametryzowane wartościami (parametry konstruktora) oraz typami (jeżeli klasa jest [generyczna](generic-classes.html)). Aby zachować regularność, zarówno typy jak i wartości są elementami klasy. Analogicznie mogą one być konkretne albo abstrakcyjne.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ discourse: true
77
tutorial: scala-tour
88
categories: tour
99
num: 31
10-
tutorial-next: default-parameter-values
11-
tutorial-previous: automatic-closures
10+
next-page: default-parameter-values
11+
previous-page: automatic-closures
1212
language: pl
1313
---
1414

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 6
1010
language: pl
11-
tutorial-next: higher-order-functions
12-
tutorial-previous: mixin-class-composition
11+
next-page: higher-order-functions
12+
previous-page: mixin-class-composition
1313
---
1414

1515
Scala posiada lekką składnię pozwalającą na definiowanie funkcji anonimowych. Poniższe wyrażenie tworzy funkcję następnika dla liczb całkowitych:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 30
1010
language: pl
11-
tutorial-next: annotations
12-
tutorial-previous: operators
11+
next-page: annotations
12+
previous-page: operators
1313
---
1414

1515
Scala pozwala na przekazywanie funkcji bezparametrycznych jako argumenty dla metod. Kiedy tego typu metoda jest wywołana, właściwe parametry dla funkcji bezparametrycznych nie są ewaluowane i przekazywana jest pusta funkcja, która enkapsuluje obliczenia odpowiadającego parametru (tzw. *wywołanie-przez-nazwę*).

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 10
1010
language: pl
11-
tutorial-next: pattern-matching
12-
tutorial-previous: currying
11+
next-page: pattern-matching
12+
previous-page: currying
1313
---
1414

1515
Scala wspiera mechanizm _klas przypadków_. Klasy przypadków są zwykłymi klasami z dodatkowymi założeniami:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 3
1010
language: pl
11-
tutorial-next: traits
12-
tutorial-previous: unified-types
11+
next-page: traits
12+
previous-page: unified-types
1313
---
1414

1515
Klasy w Scali określają schemat obiektów podczas wykonania programu. Oto przykład definicji klasy `Point`:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 23
1010
language: pl
11-
tutorial-next: explicitly-typed-self-references
12-
tutorial-previous: abstract-types
11+
next-page: explicitly-typed-self-references
12+
previous-page: abstract-types
1313
---
1414

1515
Czasami konieczne jest wyrażenie, że dany typ jest podtypem kilku innych typów. W Scali wyraża się to za pomocą *typów złożonych*, które są częścią wspólną typów obiektów.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 9
1010
language: pl
11-
tutorial-next: case-classes
12-
tutorial-previous: nested-functions
11+
next-page: case-classes
12+
previous-page: nested-functions
1313
---
1414

1515
Funkcja może określić dowolną ilość list parametrów. Kiedy jest ona wywołana dla mniejszej liczby niż zostało to zdefiniowane, zwraca funkcję pobierającą dalsze listy parametrów jako jej argument.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 32
1010
language: pl
11-
tutorial-next: named-parameters
12-
tutorial-previous: annotations
11+
next-page: named-parameters
12+
previous-page: annotations
1313
---
1414

1515
Scala zezwala na określenie domyślnych wartości dla parametrów, co pozwala wyrażeniu wywołującemu ją na pominięcie tych parametrów.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 24
1010
language: pl
11-
tutorial-next: implicit-parameters
12-
tutorial-previous: compound-types
11+
next-page: implicit-parameters
12+
previous-page: compound-types
1313
---
1414

1515
Dążąc do tego, aby nasze oprogramowanie było rozszerzalne, często przydatne okazuje się jawne deklarowanie typu `this`. Aby to umotywować, spróbujemy opracować rozszerzalną reprezentację grafu w Scali.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 15
1010
language: pl
11-
tutorial-next: sequence-comprehensions
12-
tutorial-previous: regular-expression-patterns
11+
next-page: sequence-comprehensions
12+
previous-page: regular-expression-patterns
1313
---
1414

1515
W Scali wzorce mogą być zdefiniowane niezależnie od klas przypadków. Obiekt posiadający metodę `unapply` może funkcjonować jako tak zwany ekstraktor. Jest to szczególna metoda, która pozwala na odwrócenie zastosowania obiektu dla pewnych danych. Jego celem jest ekstrakcja danych, z których został on utworzony. Dla przykładu, poniższy kod definiuje ekstraktor dla [obiektu](singleton-objects.html) `Twice`:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 17
1010
language: pl
11-
tutorial-next: variances
12-
tutorial-previous: sequence-comprehensions
11+
next-page: variances
12+
previous-page: sequence-comprehensions
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/tutorials/tour/_posts/2017-02-13-higher-order-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 7
1010
language: pl
11-
tutorial-next: nested-functions
12-
tutorial-previous: anonymous-function-syntax
11+
next-page: nested-functions
12+
previous-page: anonymous-function-syntax
1313
---
1414

1515
Scala pozwala na definiowanie funkcji wyższego rzędu. Są to funkcje, które przyjmują funkcje jako parametry lub których wynik jest też funkcją. Poniżej znajduje się przykład funkcji `apply`, która pobiera inną funkcję `f` i wartość `v` po to, by zwrócić wynik zastosowania `f` do `v`:

pl/tutorials/tour/_posts/2017-02-13-implicit-conversions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 26
1010
language: pl
11-
tutorial-next: polymorphic-methods
12-
tutorial-previous: implicit-parameters
11+
next-page: polymorphic-methods
12+
previous-page: implicit-parameters
1313
---
1414

1515
Konwersja niejawna z typu `S` do `T` jest określona przez wartość domniemaną, która jest funkcją typu `S => T` lub przez metodę domniemaną odpowiadającą funkcji tego typu.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 25
1010
language: pl
11-
tutorial-next: implicit-conversions
12-
tutorial-previous: explicitly-typed-self-references
11+
next-page: implicit-conversions
12+
previous-page: explicitly-typed-self-references
1313
---
1414

1515
Metodę z _parametrami domniemanymi_ można stosować tak samo jak każdą zwyczajną metodę. W takim przypadku etykieta `implicit` nie ma żadnego znaczenia. Jednak jeżeli odpowiednie argumenty dla parametrów domniemanych nie zostaną jawnie określone, to kompilator dostarczy je automatycznie.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 21
1010
language: pl
11-
tutorial-next: abstract-types
12-
tutorial-previous: lower-type-bounds
11+
next-page: abstract-types
12+
previous-page: lower-type-bounds
1313
---
1414

1515
W Scali możliwe jest zdefiniowanie klasy jako element innej klasy. W przeciwieństwie do języków takich jak Java, gdzie tego typu wewnętrzne klasy są elementami ujmujących ich klas, w Scali są one związane z zewnętrznym obiektem. Aby zademonstrować tę różnicę, stworzymy teraz prostą implementację grafu:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 28
1010
language: pl
11-
tutorial-next: operators
12-
tutorial-previous: polymorphic-methods
11+
next-page: operators
12+
previous-page: polymorphic-methods
1313
---
1414

1515
Scala posiada wbudowany mechanizm inferencji typów, który pozwala programiście pominąć pewne informacje o typach. Przykładowo zazwyczaj nie wymaga się podawania typów zmiennych, gdyż kompilator sam jest w stanie go wydedukować na podstawie typu wyrażenia inicjalizacji zmiennej. Także typy zwracane przez metody mogą być często pominięte, ponieważ odpowiadają one typowi ciała metody, który jest inferowany przez kompilator.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 20
1010
language: pl
11-
tutorial-next: inner-classes
12-
tutorial-previous: upper-type-bounds
11+
next-page: inner-classes
12+
previous-page: upper-type-bounds
1313
---
1414

1515
Podczas gdy [górne ograniczenia typów](upper-type-bounds.html) zawężają typ do podtypu innego typu, *dolne ograniczenia typów* określają dany typ jako typ bazowy innego typu. Sformułowanie `T >: A` wyraża, że parametr typu `T` lub typ abstrakcyjny `T` odwołuje się do typu bazowego `A`.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 5
1010
language: pl
11-
tutorial-next: anonymous-function-syntax
12-
tutorial-previous: traits
11+
next-page: anonymous-function-syntax
12+
previous-page: traits
1313
---
1414

1515
W przeciwieństwie do języków, które wspierają jedynie pojedyncze dziedziczenie, Scala posiada bardziej uogólniony mechanizm ponownego wykorzystania klas. Scala umożliwia wykorzystanie _nowych elementów klasy_ (różnicy w stosunku do klasy bazowej) w definicji nowej klasy. Wyraża się to przy pomocy _kompozycji domieszek_.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tutorial: scala-tour
88
categories: tour
99
num: 33
1010
language: pl
11-
tutorial-previous: default-parameter-values
11+
previous-page: default-parameter-values
1212
---
1313

1414
Wywołując metody i funkcje, możesz użyć nazwy parametru jawnie podczas wywołania:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 8
1010
language: pl
11-
tutorial-next: currying
12-
tutorial-previous: higher-order-functions
11+
next-page: currying
12+
previous-page: higher-order-functions
1313
---
1414

1515
Scala pozwala na zagnieżdżanie definicji funkcji. Poniższy obiekt określa funkcję `filter`, która dla danej listy filtruje elementy większe bądź równe podanemu progowi `threshold`:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 29
1010
language: pl
11-
tutorial-next: automatic-closures
12-
tutorial-previous: local-type-inference
11+
next-page: automatic-closures
12+
previous-page: local-type-inference
1313
---
1414

1515
Każda metoda, która przyjmuje jeden parametr, może być użyta jako *operator infiksowy*. Oto definicja klasy `MyBool` która zawiera metody `and` i `or`:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 11
1010
language: pl
11-
tutorial-next: singleton-objects
12-
tutorial-previous: case-classes
11+
next-page: singleton-objects
12+
previous-page: case-classes
1313
---
1414

1515
Scala posiada wbudowany mechanizm dopasowania wzorców. Umożliwia on dopasowanie dowolnego rodzaju danych, przy czym zawsze zwracamy pierwsze dopasowanie. Przykład dopasowania liczby całkowitej:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 27
1010
language: pl
11-
tutorial-next: local-type-inference
12-
tutorial-previous: implicit-conversions
11+
next-page: local-type-inference
12+
previous-page: implicit-conversions
1313
---
1414

1515
Metody w Scali mogą być parametryzowane zarówno przez wartości, jak i typy. Tak jak na poziomie klas, wartości parametrów zawierają się w parze nawiasów okrągłych, podczas gdy parametry typów są deklarawane w parze nawiasów kwadratowych.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ categories: tour
99
num: 14
1010
language: pl
1111

12-
tutorial-next: extractor-objects
13-
tutorial-previous: singleton-objects
12+
next-page: extractor-objects
13+
previous-page: singleton-objects
1414
---
1515

1616
## Wzorce sekwencji ignorujące prawą stronę ##

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 16
1010
language: pl
11-
tutorial-next: generic-classes
12-
tutorial-previous: extractor-objects
11+
next-page: generic-classes
12+
previous-page: extractor-objects
1313
---
1414

1515
Scala posiada lekką składnię do wyrażania instrukcji for. Tego typu wyrażania przybierają formę `for (enumerators) yield e`, gdzie `enumerators` oznacza listę enumeratorów oddzielonych średnikami. *Enumerator* może być generatorem wprowadzającym nowe zmienne albo filtrem. Wyrażenie `e` określa wynik dla każdego powiązania wygenerowanego przez enumeratory i zwraca sekwencję tych wartości.

pl/tutorials/tour/_posts/2017-02-13-singleton-objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ categories: tour
99
num: 12
1010
language: pl
1111

12-
tutorial-next: regular-expression-patterns
13-
tutorial-previous: pattern-matching
12+
next-page: regular-expression-patterns
13+
previous-page: pattern-matching
1414
---
1515

1616
Metody i wartości, które nie są powiązane z konkretną instancją [klasy](classes.html), należą do *obiektów singleton* określanych za pomocą słowa kluczowego `object` zamiast `class`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories: tour
99
num: 1
1010
outof: 33
1111
language: pl
12-
tutorial-next: unified-types
12+
next-page: unified-types
1313
---
1414

1515
Scala jest nowoczesnym, wieloparadygmatowym językiem programowania zaprojektowanym do wyrażania powszechnych wzorców programistycznych w zwięzłym, eleganckim i bezpiecznie typowanym stylu. Scala płynnie integruje ze sobą cechy języków funkcyjnych i zorientowanych obiektowo.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 4
1010
language: pl
11-
tutorial-next: mixin-class-composition
12-
tutorial-previous: classes
11+
next-page: mixin-class-composition
12+
previous-page: classes
1313
---
1414

1515
Zbliżone do interfejsów Javy cechy są wykorzystywane do definiowania typów obiektów poprzez określenie sygnatur wspieranych metod. Podobnie jak w Javie 8, Scala pozwala cechom na częściową implementację, tzn. jest możliwe podanie domyślnej implementacji dla niektórych metod. W przeciwieństwie do klas, cechy nie mogą posiadać parametrów konstruktora.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 2
1010
language: pl
11-
tutorial-next: classes
12-
tutorial-previous: tour-of-scala
11+
next-page: classes
12+
previous-page: tour-of-scala
1313
---
1414

1515
W przeciwieństwie do Javy wszystkie wartości w Scali są obiektami (wliczając w to wartości numeryczne i funkcje). Ponieważ Scala bazuje na klasach, wszystkie wartości są instancjami klasy. Można zatem powiedzieć, że Scala posiada zunifikowany system typów. Poniższy diagram ilustruje hierarchię klas Scali:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 19
1010
language: pl
11-
tutorial-next: lower-type-bounds
12-
tutorial-previous: variances
11+
next-page: lower-type-bounds
12+
previous-page: variances
1313
---
1414

1515
W Scali [parametry typów](generic-classes.html) oraz [typy abstrakcyjne](abstract-types.html) mogą być warunkowane przez ograniczenia typów. Tego rodzaju ograniczenia pomagają określić konkretne wartości zmiennych typu oraz odkryć więcej informacji na temat elementów tych typów. _Ograniczenie górne typu_ `T <: A` zakładają, że zmienna `T` jest podtypem typu `A`.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tutorial: scala-tour
88
categories: tour
99
num: 18
1010
language: pl
11-
tutorial-next: upper-type-bounds
12-
tutorial-previous: generic-classes
11+
next-page: upper-type-bounds
12+
previous-page: generic-classes
1313
---
1414

1515
Scala wspiera adnotacje wariancji parametrów typów [klas generycznych](generic-classes.html). W porównaniu do Javy adnotacje wariancji mogą zostać dodane podczas definiowania abstrakcji klasy, gdy w Javie adnotacje wariancji są podane przez użytkowników tych klas.

0 commit comments

Comments
 (0)
0