Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #89

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
99ebbd9
Create greek files directory
merianos Jul 27, 2015
f34c7ce
Translate MIT License to Greek
merianos Jul 27, 2015
ed57d45
Introduction has been translated
merianos Jul 27, 2015
2ceabab
Translating the arrow feature
merianos Jul 27, 2015
386092a
Translate classes into greek language
merianos Jul 27, 2015
bcacc1b
Traslation of the Enhanced object literals into greek language
merianos Jul 27, 2015
fe0ed2c
Translate tempate string into greek language
merianos Jul 27, 2015
a84df60
Translating Destructuring into greek language
merianos Jul 28, 2015
1aab3ae
Translating the Default + Rest + Spread into greek language
merianos Jul 28, 2015
a66dfc1
Translating Let + Const into greek language
merianos Jul 28, 2015
56c2441
Translating Iterators + for..of into greek language
merianos Jul 28, 2015
2a7f4c2
Translating Generators into greek language
merianos Jul 28, 2015
4e02ee0
Translating Unicode into greek language
merianos Jul 28, 2015
d23cf62
Translating Modules into greek language
merianos Jul 28, 2015
69f1ce4
Translating Module Loaders into greek language
merianos Jul 28, 2015
e000f80
Translating Map + Set + WeakMap + WeakSet into greek language
merianos Jul 28, 2015
2e55637
Translating Proxies into greek language
merianos Jul 28, 2015
46683f2
Translating Symbols into greek language
merianos Jul 28, 2015
b43ea8e
Translating Subclassable Built-ins into greek language
merianos Jul 28, 2015
fe608d9
Translating math + number + string + array + object APIs into greek …
merianos Jul 28, 2015
982b0e2
Translating Binary and octal literals into greek language
merianos Jul 28, 2015
14dffec
Translating Promises into greek language
merianos Jul 28, 2015
73a5479
Translating Reflect API into greek language
merianos Jul 28, 2015
e3296ed
Translating Tail Calls into greek language
merianos Jul 28, 2015
43aa584
Merge branch 'feature/translate-readme-to-greek' into develop
merianos Jul 28, 2015
b16c474
Merge branch 'lukehoban:master' into develop
merianos Jan 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Translating Generators into greek language
  • Loading branch information
merianos committed Jul 28, 2015
commit 2a7f4c2838f94af0ee168359ca59b524a4160546
11 changes: 6 additions & 5 deletions el/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,11 @@ interface Iterable {
}
```

### Generators
Generators simplify iterator-authoring using `function*` and `yield`. A function declared as function* returns a Generator instance. Generators are subtypes of iterators which include additional `next` and `throw`. These enable values to flow back into the generator, so `yield` is an expression form which returns a value (or throws).
### Γεννήτριες (Generators)

Note: Can also be used to enable ‘await’-like async programming, see also ES7 `await` proposal.
Οι γεννήτριες απλοποιούν την συγγραφή επαναληπτών χρησιμοποιώντας το `function*` και `yield`. Μία συνάρτηση που έχει δηλωθεί ως function* επιστρέφει ένα στιγμιότυπο μιας γεννήτριας. Οι γεννήτριες είναι υπό-τύποι επαναληπτών που περιέχει επιπλέον τις συναρτήσεις `next` και `throw`. Αυτές επιτρέπουν στις τιμές να ολισθαίνουν πίσω στην γεννήτρια, έτσι η `yield` είναι μια δήλωση από την οποία επιστρέφει μια τιμή ( ή throws).

Σημείωση: Μπορούν επίσης να χρησιμοποιηθούν για να ενεργοποιήσουν ασύγχρονο προγραμματισμό τύπου αναμονής, δείτε επίσης την πρόταση για το `await` της ES7.

```JavaScript
var fibonacci = {
Expand All @@ -260,14 +261,14 @@ var fibonacci = {
}

for (var n of fibonacci) {
// truncate the sequence at 1000
// Περικοπή της ακολουθίας στα 1000
if (n > 1000)
break;
console.log(n);
}
```

The generator interface is (using [TypeScript](http://typescriptlang.org) type syntax for exposition only):
Η διεπαφή της γεννήτριας είναι (χρήση της σύνταξης τύπου του [TypeScript](http://typescriptlang.org) μόνο για έκθεση):

```TypeScript
interface Generator extends Iterator {
Expand Down