Skip to content

Fix explanation in List applicative #79

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/functors-applicative-functors-and-monoids.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ <h1>Functors, Applicative Functors and Monoids</h1>
ghci&gt; [(*0),(+100),(^2)] &lt;*&gt; [1,2,3]
[0,0,0,101,102,103,1,4,9]
</pre>
<p>The left list has three functions and the right list has three values, so the resulting list will have nine elements. Every function in the left list is applied to every function in the right one. If we have a list of functions that take two parameters, we can apply those functions between two lists.</p>
<p>The left list has three functions and the right list has three values, so the resulting list will have nine elements. Every function in the left list is applied to every value in the right one. If we have a list of functions that take two parameters, we can apply those functions between two lists.</p>
<pre name="code" class="haskell:hs">
ghci&gt; [(+),(*)] &lt;*&gt; [1,2] &lt;*&gt; [3,4]
[4,5,5,6,3,4,6,8]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ ghci> [(*0),(+100),(^2)] <*> [1,2,3]
```

The left list has three functions and the right list has three values, so the resulting list will have nine elements.
Every function in the left list is applied to every function in the right one.
Every function in the left list is applied to every value in the right one.
If we have a list of functions that take two parameters, we can apply those functions between two lists.

```{.haskell:hs}
Expand Down