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

Make p a functor #62

Open
guillaumearm opened this issue Dec 9, 2016 · 0 comments
Open

Make p a functor #62

guillaumearm opened this issue Dec 9, 2016 · 0 comments
Milestone

Comments

@guillaumearm
Copy link
Collaborator

guillaumearm commented Dec 9, 2016

conforming to #61, replace p.tmby morph combinator.

example :

const replace = (searchValue, newValue) => content => (
  content.replace(searchValue, newValue)
);

const replaceDollarsByEuros = replace(/\$/g, '€');
p.map(replaceDollarsByEuros).tc('home.common.title');
@guillaumearm guillaumearm changed the title Replace p.tpm b Replace p.tm by morph() combinator Dec 9, 2016
@guillaumearm guillaumearm changed the title Replace p.tm by morph() combinator Replace p.tm() by morph() combinator Dec 9, 2016
@guillaumearm guillaumearm modified the milestone: v0.4 Dec 9, 2016
@guillaumearm guillaumearm added this to the v1.0 milestone Jan 21, 2017
@guillaumearm guillaumearm changed the title Replace p.tm() by morph() combinator Make p a functor Apr 10, 2018
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

No branches or pull requests

1 participant