Skip to content

Commit

Permalink
fix "Nuisances" tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley committed Oct 15, 2024
1 parent 3326de6 commit 5e938e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/Nuisances.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ y = let x = 1 + 2 in x + x
spidr will interpret each `x` as a different expression, and create two copies of `1 + 2`. This is acceptable for small calculations, but it would be a big problem if `x` were expensive to evaluate, or used a lot of space in memory. To prevent recalculating expressions, spidr provides _observable sharing_ via the interface
> ```idris
> interface Taggable a where
> tag : a -> Tag a
> tag : Monad m => a -> TagT m a
> ```
`tag` tags all tensor expressions contained within the `a`. You can efficiently reuse a value created by `tag` as many times as you like; it will only be evaluated once. In our example, this would be
```idris
Expand Down

0 comments on commit 5e938e8

Please sign in to comment.