Skip to content

Commit

Permalink
add broadcast tipp
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger committed Oct 11, 2023
1 parent d52c915 commit 3656975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion material/3_wed/vis/tasks.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Let's simulate 1000x datasets, each with a different seed, and take the mean ov

::: {.callout-tip collapse="true"}
## click to show tip
An easy way to call a function many times is to broadcast it on an array e.g. `1:1000` - you could also use `map` to do it, but I don't think it is as clear :)
An easy way to call a function many times is to broadcast it on an array e.g. `fun.(1:1000)` - you could also use `map` to do it, but I don't think it is as clear :)
:::


Expand Down

0 comments on commit 3656975

Please sign in to comment.