-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[apl/de]: add german translation for APL #5423
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| --- | ||
| name: APL | ||
| contributors: | ||
| - ["nooodl", "https://github.com/nooodl"] | ||
| translators: | ||
| - ["antonkesy", "https://github.com/antonkesy"] | ||
| filename: learnapl.apl | ||
| --- | ||
|
|
||
| ```apl | ||
| ⍝ Kommentare in APL beginnen mit ⍝. | ||
|
|
||
| ⍝ Eine Liste von Zahlen. (¯ ist negativ) | ||
| 2 3e7 ¯4 50.3 | ||
|
|
||
| ⍝ Ein Ausdruck, der einige Funktionen zeigt. In APL gibt es | ||
| ⍝ keine Operatorrangfolge: alles wird von rechts nach | ||
| ⍝ links geparst. Dies entspricht 5 + (4 × (2 ÷ (5 - 3))) = 9: | ||
| 5 + 4 × 2 ÷ 5 - 3 ⍝ 9 | ||
|
|
||
| ⍝ Diese Funktionen funktionieren auch mit Listen: | ||
| 1 2 3 4 × 5 ⍝ 5 10 15 20 | ||
| 1 2 3 4 × 5 6 7 8 ⍝ 5 12 21 32 | ||
|
|
||
| ⍝ Alle Funktionen haben sowohl Einzelargument- als auch Doppelargument- | ||
| ⍝ Bedeutungen. Zum Beispiel bedeutet "×" mit zwei Argumenten | ||
| ⍝ multiplizieren, aber wenn es nur auf eine rechte Seite | ||
| ⍝ angewendet wird, gibt es das Vorzeichen zurück: | ||
|
|
||
| × ¯4 ¯2 0 2 4 ⍝ ¯1 ¯1 0 1 1 | ||
|
|
||
| ⍝ Werte können mit diesen Operatoren verglichen werden (1 bedeutet | ||
| ⍝ "wahr", 0 bedeutet "falsch"): | ||
|
|
||
| 10 20 30 = 10 20 99 ⍝ 1 1 0 | ||
|
|
||
| 10 20 30 < 10 20 99 ⍝ 0 0 1 | ||
|
|
||
| ⍝ "⍳n" gibt einen Vektor mit den ersten n natürlichen Zahlen zurück. | ||
| ⍝ Matrizen können mit ⍴ (umformen) konstruiert werden: | ||
| 4 3 ⍴ ⍳5 ⍝ 0 1 2 | ||
| ⍝ 3 4 0 | ||
| ⍝ 1 2 3 | ||
| ⍝ 4 0 1 | ||
|
|
||
| ⍝ Einzelargument ⍴ gibt die Dimensionen zurück: | ||
| ⍴ 4 3 ⍴ ⍳5 ⍝ 4 3 | ||
|
|
||
| ⍝ Werte können mit ← gespeichert werden. Lass uns den Mittelwert | ||
| ⍝ eines Vektors von Zahlen berechnen: | ||
| A ← 10 60 55 23 | ||
|
|
||
| ⍝ Summe der Elemente von A (/ ist Reduktion): | ||
| +/A ⍝ 148 | ||
|
|
||
| ⍝ Länge von A: | ||
| ⍴A ⍝ 4 | ||
|
|
||
| ⍝ Mittelwert: | ||
| (+/A) ÷ (⍴A) ⍝ 37 | ||
|
|
||
| ⍝ Wir können dies als Funktion mit {} und ⍵ definieren: | ||
| mean ← {(+/⍵)÷⍴⍵} | ||
| mean A ⍝ 37 | ||
| ``` | ||
|
|
||
| ## Weitere Literatur | ||
|
|
||
| - [APL Wiki](https://aplwiki.com/) | ||
| - Eine ältere Version des APL-Buchs vom Erfinder: [Kenneth Iverson - A Programming Language](https://archive.org/details/aprogramminglanguage1962) | ||
| - Weitere Bücher: [APL Books](https://aplwiki.com/wiki/Books) | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please add yourself under
translators:pleaseThere 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.
Ah yeah, my bad. Fixed now.