IO fertig, trick mit module name in first julia cell
This commit is contained in:
@@ -2,14 +2,21 @@
|
||||
engine: julia
|
||||
---
|
||||
|
||||
# Funktionen und Operatoren
|
||||
|
||||
```{julia}
|
||||
#| error: false
|
||||
#| echo: false
|
||||
#| output: false
|
||||
using InteractiveUtils
|
||||
import QuartoNotebookWorker
|
||||
Base.stdout = QuartoNotebookWorker.with_context(stdout)
|
||||
myactive_module() = Main.Notebook
|
||||
Base.active_module() = myactive_module()
|
||||
# https://github.com/JuliaLang/julia/blob/master/base/show.jl#L516-L520
|
||||
# https://github.com/JuliaLang/julia/blob/master/base/show.jl#L3073-L3077
|
||||
```
|
||||
|
||||
# Funktionen und Operatoren
|
||||
|
||||
Funktionen verarbeiten ihre Argumente zu einem Ergebnis, das sie beim Aufruf zurückliefern.
|
||||
|
||||
@@ -305,7 +312,7 @@ f(.2)
|
||||
["a", "list", "of", "strings"] .|> [length, uppercase, reverse, titlecase]
|
||||
```
|
||||
|
||||
## Die `do`-Notation
|
||||
## Die `do`-Notation {#sec-do}
|
||||
|
||||
Eine syntaktische Besonderheit zur Definition anonymer Funktionen als Argumente anderer Funktionen ist die `do`-Notation.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user