Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add Documentation for Endo #187

Merged
merged 2 commits into from
Jan 16, 2018
Merged

Add Documentation for Endo #187

merged 2 commits into from
Jan 16, 2018

Conversation

evilsoft
Copy link
Owner

Not just a bike trick anymore

image

This PR addresses adding the Endo documentation from this issue. Once this PR is merged, will do a follow up PR to move this over to the git pages documentation.

@coveralls
Copy link

coveralls commented Jan 16, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling e3f124f on endo-docs into 0fc777f on master.

Copy link

@foxdonut foxdonut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evilsoft you are doing a fantastic job with this documentation! 💯

`Endo` is a `Monoid` that will combine (2) functions that have matching domains
and codomains (endofunctions) under function composition. Due to the nature
of `Endo` wrapping a function, the underlying value can either be extracted
using [`valueOf`](#valueof) like any other `Monoid` or can be executed using

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be executed using directly using should be can be executed directly using

`empty` provides the identity for the `Monoid` in that when the value it
provides is `concat`ed to any other value, it will return the other value. In
the case of `Endo` the result of `empty` is the identity function, which echos
it's input. `empty` is available on both the Constructor and the Instance for

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be its input

Endo a ~> a -> a
```

`Endo` wraps a function and as such, it's underlying endofunction can be run

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be its underlying endofunction

```

`Endo` wraps a function and as such, it's underlying endofunction can be run
while inside of an `Endo` by calling `runWith`. Providing a valid value of the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are two spaces between value of the

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f7e0ec3 on endo-docs into 0fc777f on master.

1 similar comment
@coveralls
Copy link

coveralls commented Jan 16, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling f7e0ec3 on endo-docs into 0fc777f on master.

@evilsoft
Copy link
Owner Author

image

@evilsoft evilsoft merged commit 4db1b61 into master Jan 16, 2018
@evilsoft evilsoft deleted the endo-docs branch January 16, 2018 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants