Skip to content

Commit 31fdce9

Browse files
committed
Merge remote-tracking branch 'upstream/master' into testmerge
2 parents 1627215 + b0170a9 commit 31fdce9

File tree

409 files changed

+1379
-577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

409 files changed

+1379
-577
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33

44
This repository contains the source for the Scala documentation website, as well as the source for "Scala Improvement Process" (SIP) documents.
55

6+
## Quickstart ##
7+
8+
To build and view the site locally:
9+
10+
gem install bundler
11+
bundle install
12+
bundle exec jekyll serve -I
13+
14+
For more details, read on.
15+
616
## Contributing ##
717

818
Please have a look at [http://docs.scala-lang.org/contribute.html](http://docs.scala-lang.org/contribute.html) before making a contribution.

_includes/discourse.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div id='discourse-comments'></div>
2+
3+
<script type="text/javascript">
4+
DiscourseEmbed = { discourseUrl: 'http://users.scala-lang.org/',
5+
discourseEmbedUrl: 'http://docs.scala-lang.org/{{ page.url }}' };
6+
7+
(function() {
8+
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
9+
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
10+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
11+
})();
12+
</script>

_includes/disqus.html

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

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Apstraktni tipovi
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 22
1010
outof: 33
1111
language: ba
12+
13+
next-page: compound-types
14+
previous-page: inner-classes
1215
---
1316

1417
U Scali, klase su parameterizovane vrijednostima (parameteri konstruktora) i tipovima (ako su [generičke](generic-classes.html)).

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Anotacije
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 31
1010
outof: 33
1111
language: ba
12+
13+
next-page: default-parameter-values
14+
previous-page: case-classes
1215
---
1316

1417
Anotacije pridružuju meta-informacije definicijama.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Sintaksa anonimnih funkcija
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 6
1010
outof: 33
1111
language: ba
12+
13+
next-page: higher-order-functions
14+
previous-page: mixin-class-composition
1215
---
1316

1417
Scala omogućuje relativno lahku sintaksu za definisanje anonimnih funkcija. Sljedeći izraz kreira funkciju za sljedbenike cijelih brojeva:

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Automatska konstrukcija tipno zavisnih closura (zatvarajućih funkcija)
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 30
1010
outof: 33
1111
language: ba
12+
13+
next-page: case-classes
14+
previous-page: operators
1215
---
1316

1417
Scala dozvoljava da se argument (ili više njih) metode ne evaluira prije samog poziva metode.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Case klase
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 30
1010
outof: 33
1111
language: ba
12+
13+
next-page: annotations
14+
previous-page: automatic-closures
1215
---
1316

1417
Scala podržava tzv. _case klase_.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Klase
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 3
1010
outof: 33
1111
language: ba
12+
13+
next-page: traits
14+
previous-page: unified-types
1215
---
1316

1417
Klase u Scali su statički šabloni koji mogu biti instancirani u više objekata tokom izvršavanja programa (runtime).

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Složeni tipovi
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 23
1010
outof: 33
1111
language: ba
12+
13+
next-page: explicitly-typed-self-references
14+
previous-page: abstract-types
1215
---
1316

1417
Ponekad je potrebno izraziti da je tip objekta podtip nekoliko drugih tipova.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Curry-jevanje
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 9
1010
outof: 33
1111
language: ba
12+
13+
next-page: pattern-matching
14+
previous-page: nested-functions
1215
---
1316

1417
Metode mogu definisati više lista parametara.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Podrazumijevane vrijednosti parametara
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 32
1010
outof: 33
1111
language: ba
12+
13+
next-page: named-parameters
14+
previous-page: annotations
1215
---
1316

1417
Scala omogućuje davanje podrazumijevanih vrijednosti parametrima koje dozvoljavaju korisniku metode da izostavi te parametre.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Eksplicitno tipizirane samo-reference
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 24
1010
outof: 33
1111
language: ba
12+
13+
next-page: implicit-parameters
14+
previous-page: compound-types
1215
---
1316

1417
Kada se razvija proširiv softver ponekad je zgodno deklarisati tip vrijednosti `this` eksplicitno.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Ekstraktor objekti
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 15
1010
outof: 33
1111
language: ba
12+
13+
next-page: sequence-comprehensions
14+
previous-page: regular-expression-patterns
1215
---
1316

1417
U Scali, uzorci (patterns) mogu biti definisani nezavisno od case klasa.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Generičke klase
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 17
1010
outof: 33
1111
language: ba
12+
13+
next-page: variances
14+
previous-page: sequence-comprehensions
1215
---
1316

1417
Kao u Javi 5 ([JDK 1.5](http://java.sun.com/j2se/1.5/)), Scala ima ugrađenu podršku za klase parametrizovane tipovima.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Funkcije višeg reda
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 7
1010
outof: 33
1111
language: ba
12+
13+
next-page: nested-functions
14+
previous-page: anonymous-function-syntax
1215
---
1316

1417
Scala dozvoljava definisanje funkcija višeg reda.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Implicitne konverzije
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 26
1010
outof: 33
1111
language: ba
12+
13+
next-page: polymorphic-methods
14+
previous-page: implicit-parameters
1215
---
1316

1417
Implicitna konverzija iz tipa `S` u tip `T` je definisana kao implicitna vrijednost koja ima tip `S => T` (funkcija),

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Implicitni parametri
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 25
1010
outof: 33
1111
language: ba
12+
13+
next-page: implicit-conversions
14+
previous-page: explicitly-typed-self-references
1215
---
1316

1417
Metoda s _implicitnim parametrima_ može biti primijenjena na argumente kao i normalna metoda.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Unutarnje klase
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 21
1010
outof: 33
1111
language: ba
12+
13+
next-page: abstract-types
14+
previous-page: lower-type-bounds
1215
---
1316

1417
U Scali je moguće da klase imaju druge klase kao članove.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Lokalno zaključivanje tipova (type inference)
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 28
1010
outof: 33
1111
language: ba
12+
13+
next-page: operators
14+
previous-page: polymorphic-methods
1215
---
1316
Scala ima ugrađen mehanizam zaključivanja tipova koji dozvoljava programeru da izostavi određene anotacije tipova.
1417
Često nije potrebno specificirati tip varijable u Scali,

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Donja granica tipa
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 20
1010
outof: 33
1111
language: ba
12+
13+
next-page: inner-classes
14+
previous-page: upper-type-bounds
1215
---
1316

1417
Dok [gornja granica tipa](upper-type-bounds.html) limitira tip na podtip nekog drugog tipa,

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: inner-page-no-masthead
33
title: Kompozicija mixin klasa
44

5-
disqus: true
5+
discourse: false
66

77
tutorial: scala-tour
88
categories: tour
99
num: 5
1010
outof: 33
1111
language: ba
12+
13+
next-page: anonymous-function-syntax
14+
previous-page: traits
1215
---
1316

1417
Nasuprot jezicima koji podržavaju samo _jednostruko nasljeđivanje_, Scala ima generalniji pojam ponovne upotrebe klasa.

0 commit comments

Comments
 (0)