Skip to content

Commit

Permalink
feat: add gitbook enricopolanski#24
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmmzz committed Mar 14, 2023
1 parent 9f60057 commit 325d43c
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The purpose of the edits is to expand on the material without changing the conce

## Read it Online

For a best reading experience, [read it online via Gitbook](https://wwmmzz.github.io/functional-programming/).
For a best reading experience, [read it online via Gitbook](https://enricopolanski.github.io/functional-programming/).

- Quick-access side-bar
- In-browser exercises
Expand Down
2 changes: 1 addition & 1 deletion website/docs/1. What is functional programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ What happens here is that `input` is passed to the first function `f1`, which re

**Demo**

[`00_pipe_and_flow.ts`](https://github.com/wwmmzz/functional-programming/blob/master/src/00_pipe_and_flow.ts)
[`00_pipe_and_flow.ts`](https://github.com/enricopolanski/functional-programming/blob/master/src/00_pipe_and_flow.ts)

We'll see how functional programming provides us with tools to structure our code in that style.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/10. Applicative functors.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ const of = <R, A>(a: A): Reader<R, A> => () => a

**Demo**

[`05_applicative.ts`](https://github.com/wwmmzz/functional-programming/blob/master/src/05_applicative.ts)
[`05_applicative.ts`](https://github.com/enricopolanski/functional-programming/blob/master/src/05_applicative.ts)

## Applicative functors compose

Expand Down
2 changes: 1 addition & 1 deletion website/docs/11. Monads.md
Original file line number Diff line number Diff line change
Expand Up @@ -829,4 +829,4 @@ program5(DepsAsync)().then(console.log)

**Demo**

[`06_game.ts`](https://github.com/wwmmzz/functional-programming/blob/master/src/06_game.ts)
[`06_game.ts`](https://github.com/enricopolanski/functional-programming/blob/master/src/06_game.ts)
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Let's try to implement such a module:

**Demo**

[`01_retry.ts`](https://github.com/wwmmzz/functional-programming/blob/master/src/01_retry.ts)
[`01_retry.ts`](https://github.com/enricopolanski/functional-programming/blob/master/src/01_retry.ts)

As you can see from the previous demo, with merely 3 primitives and two combinators we've been able to express a pretty complex policy.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/3. Modelling composition with Semigroups.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const SemigroupSum: Semigroup<number> = {
}
```

**Quiz**. Can the `concat` combinator defined in the demo [`01_retry.ts`](https://github.com/wwmmzz/functional-programming/blob/master/src/01_retry.ts) be used to define a `Semigroup` instance for the `RetryPolicy` type?
**Quiz**. Can the `concat` combinator defined in the demo [`01_retry.ts`](https://github.com/enricopolanski/functional-programming/blob/master/src/01_retry.ts) be used to define a `Semigroup` instance for the `RetryPolicy` type?

> See the [answer here](quiz-answers/semigroup-demo-concat.md)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/5. Modeling composition through Monoids.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ const Monoid: Monoid<Point> = tuple(N.MonoidSum, N.MonoidSum)

**Demo** (implementing a system to draw geoetric shapes on canvas)

[`03_shapes.ts`](https://github.com/wwmmzz/functional-programming/blob/master/src/03_shapes.ts)
[`03_shapes.ts`](https://github.com/enricopolanski/functional-programming/blob/master/src/03_shapes.ts)
2 changes: 1 addition & 1 deletion website/docs/9. Functors.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ Practically, using `Option`, we're always in front of the `happy path`, error ha

**Demo** (optional)

[`04_functor.ts`](https://github.com/wwmmzz/functional-programming/blob/master/src/04_functor.ts)
[`04_functor.ts`](https://github.com/enricopolanski/functional-programming/blob/master/src/04_functor.ts)

**Quiz**. `Task<A>` represents an asynchronous call that always succeed, how can we model a computation that can fail instead?

Expand Down
2 changes: 1 addition & 1 deletion website/docs/quiz-answers/semigroup-demo-concat.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Question

Can the `concat` combinator defined in the demo [`01_retry.ts`](https://github.com/wwmmzz/functional-programming/blob/master/src/01_retry.ts) be used to define a `Semigroup` instance for the `RetryPolicy` type?
Can the `concat` combinator defined in the demo [`01_retry.ts`](https://github.com/enricopolanski/functional-programming/blob/master/src/01_retry.ts) be used to define a `Semigroup` instance for the `RetryPolicy` type?

## Answer

Expand Down
8 changes: 4 additions & 4 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const config = {
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://wwmmzz.github.io',
url: 'https://enricopolanski.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/functional-programming/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'wwmmzz', // Usually your GitHub org/user name.
organizationName: 'enricopolanski', // Usually your GitHub org/user name.
projectName: 'functional-programming', // Usually your repo name.
trailingSlash:false,

Expand All @@ -44,7 +44,7 @@ const config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/wwmmzz/functional-programming/blob/master/website',
'https://github.com/enricopolanski/functional-programming/blob/master/website',
},
blog: false,
theme: {
Expand All @@ -63,7 +63,7 @@ const config = {

items: [
{
href: 'https://github.com/wwmmzz/functional-programming',
href: 'https://github.com/enricopolanski/functional-programming',
position: 'right',
className: 'header-github-link',
},
Expand Down

0 comments on commit 325d43c

Please sign in to comment.