Skip to content

Commit

Permalink
docs: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Feb 25, 2025
1 parent 5f0a282 commit d41d4be
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -707,22 +707,6 @@ model.fit(x[:, np.newaxis], y)
If everything works, you should find something that simplifies to $\frac{\sqrt{x^2 - 1}}{x}$.

Here, we write out a full function in Julia.
But we can also do an anonymous function, like `((; f), (x,)) -> D(f, 1)(x)`. We can also avoid the fancy unpacking syntax and write:
`(nt, xs) -> D(nt.f, 1)(xs[1])` which is completely equivalent. Note that in Julia,
the following two syntaxes are equivalent:

```julia
nt = (; f=1, g=2) # Create a "named tuple"
(; f, g) = nt
```

and

```julia
f = nt.f
g = nt.g
```


## 14. Additional features

Expand Down

0 comments on commit d41d4be

Please sign in to comment.