-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add basics/ranges.md #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ein paar Ideen.
basics/ranges.md
Outdated
``` | ||
|
||
Falls das Range-Objekt ein Referenztyp ist (z.B. `class`), wird es | ||
verbraucht ist für weitere Iterationen nicht mehr verfügbar (es sei |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wird es verbraucht, d.h. es zeigt auf das Ende und steht ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wird es verbraucht, d.h. es zeigt auf das Ende und steht ...
Zu kompliziert? Zeiger, innerer Aufbau von Ranges müsste beschrieben werden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dann würde ich wenigstens den Grammatikfehler ausbessern:
"wird es verbraucht und ist daher .."
basics/ranges.md
Outdated
Falls das Range-Objekt ein Referenztyp ist (z.B. `class`), wird es | ||
verbraucht ist für weitere Iterationen nicht mehr verfügbar (es sei | ||
denn, der Schleifenrumpf bricht vor der letzten Iteration ab). | ||
Falls das Range-Objekt ein Werttyp ist, wird eine Kopie der Range |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Werttyp klingt komisch.
Werte-Typ?
Leider ist Wikipedia auch nicht wirklich aufschlussreich: https://de.wikipedia.org/wiki/Datentyp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imho so lassen, aber du hast recht, es sieht komisch aus.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Du hast in einem PR Wert-Typ verwendet. Ich glaube es ist vor allem wichtig einheitlich zu sein.
Siehe auch: #41
Range verbraucht. | ||
Die meisten Ranges der Standard-Bibliothek sind Strukturen (`struct`), | ||
sodass eine Iteration normalerweise nicht zerstörend wirkt - allerdings | ||
nicht garantiert. Sollte diese Garantie wichtig sein, sind **forward** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allerdings ohne Garantie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nächster Satz enthält schon das Nomen Garantie, von daher...
basics/ranges.md
Outdated
### Übungsaufgabe | ||
|
||
Vervollständige den Quellcode, um eine `FibonacciRange` erzeugen, | ||
die Zahlen der [Fibonacci-Folge](https://de.wikipedia.org/wiki/Fibonacci-Folge). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
, die die Zahlen ... generiert/zurückgibt?
basics/ranges.md
Outdated
|
||
Vervollständige den Quellcode, um eine `FibonacciRange` erzeugen, | ||
die Zahlen der [Fibonacci-Folge](https://de.wikipedia.org/wiki/Fibonacci-Folge). | ||
Der`assert`-Befehl am Ende stellt die korrekte Implementation sicher! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Korrektheit deiner Implementation
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create attributes.md * Create attributes.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create bit-manipulation.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create bit-manipulation.md * Create bit-manipulation.md * Create bit-manipulation.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create compile-time-function-evaluation-ctfe.md * Create compile-time-function-evaluation-ctfe.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create contract-programming.md * Create contract-programming.md * Create contract-programming.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create documentation.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create documentation.md * Create documentation.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create functional-programming.md * Create functional-programming.md * Create functional-programming.md * Create functional-programming.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create opdispatch-opapply.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create opdispatch-opapply.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create range-algorithms.md * Create range-algorithms.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create scope-guards.md * Create scope-guards.md * Create scope-guards.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create scope-guards.md * Create scope-guards.md * Create scope-guards.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create string-mixins.md * Create string-mixins.md * Create string-mixins.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create subtyping.md * Create subtyping.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create template-meta-programming.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create template-meta-programming.md * Create template-meta-programming.md * Create template-meta-programming.md * Create template-meta-programming.md * Create template-meta-programming.md * Create template-meta-programming.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create traits.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create traits.md * Create traits.md * Create traits.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create unicode.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create unicode.md * Create unicode.md * Create unicode.md * Update unicode.md * Create unicode.md * Create unicode.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create unicode.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create unicode.md * Create unicode.md * Create unicode.md * Update unicode.md * Create unicode.md * Create unicode.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create uniform-function-call-syntax-ufcs.md * Create uniform-function-call-syntax-ufcs.md * Create uniform-function-call-syntax-ufcs.md * Create uniform-function-call-syntax-ufcs.md * Create uniform-function-call-syntax-ufcs.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create index.yml * Create unittesting.md * Create unittesting.md * Create unittesting.md * Create unittesting.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create unittesting.md * Create unittesting.md * Update unittesting.md * Create unittesting.md * Create unittesting.md
* Update install-d-locally.md * Update links-documentation.md * Add basics/loops.md (#30) * Add basics/foreach.md (dlang-tour#31) * Add basics/further-reading.md (dlang-tour#36) * Add basics/templates.md (dlang-tour#38) * Add basics/delgates.md (dlang-tour#40) * Add basics/interfaces.md (dlang-tour#35) * Add basics/ranges.md (dlang-tour#33) * Add basics/exceptions.md (dlang-tour#37) * Add basics/associative-arrays.md (dlang-tour#34) * Add basics/alias-strings.md (dlang-tour#32) * Add basics/classes.md (dlang-tour#39) * Create unittesting.md * Create unittesting.md * Create unittesting.md * Create unittesting.md * Update classes.md (dlang-tour#44) * Update index.yml enable all files in basics * Create unittesting.md * Create unittesting.md * Update unittesting.md * Create unittesting.md * Create unittesting.md
German translation of basics/ranges.md.