From 31a990a210cd98ade25d783a129ca9da90dc68b1 Mon Sep 17 00:00:00 2001 From: criskell <96352451+criskell@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:21:58 -0300 Subject: [PATCH 1/2] Fix explanation in List applicative Signed-off-by: criskell <96352451+criskell@users.noreply.github.com> --- markdown/source_md/functors-applicative-functors-and-monoids.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown/source_md/functors-applicative-functors-and-monoids.md b/markdown/source_md/functors-applicative-functors-and-monoids.md index d93c175..e2928d0 100644 --- a/markdown/source_md/functors-applicative-functors-and-monoids.md +++ b/markdown/source_md/functors-applicative-functors-and-monoids.md @@ -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} From 637bf9c45f38b4cea6442132a3e71b0e4463620b Mon Sep 17 00:00:00 2001 From: criskell Date: Wed, 30 Oct 2024 14:37:02 -0300 Subject: [PATCH 2/2] Fix explanation in HTML of List applicative guide --- docs/functors-applicative-functors-and-monoids.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/functors-applicative-functors-and-monoids.html b/docs/functors-applicative-functors-and-monoids.html index 6d0c7bb..a9a92b9 100644 --- a/docs/functors-applicative-functors-and-monoids.html +++ b/docs/functors-applicative-functors-and-monoids.html @@ -327,7 +327,7 @@

Functors, Applicative Functors and Monoids

ghci> [(*0),(+100),(^2)] <*> [1,2,3] [0,0,0,101,102,103,1,4,9] -

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.

+

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.

 ghci> [(+),(*)] <*> [1,2] <*> [3,4]
 [4,5,5,6,3,4,6,8]