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

Combinators #2

Open
richytong opened this issue Oct 14, 2020 · 0 comments
Open

Combinators #2

richytong opened this issue Oct 14, 2020 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@richytong
Copy link
Owner

richytong commented Oct 14, 2020

    H1('Compare Values'),
    Div([
      DocsEq(props),
      DocsGt(props),
      DocsLt(props),
      DocsGte(props),
      DocsLte(props),
    ]),

Would be nice if I didn't have to write props over and over. Maybe some API like

    H1('Compare Values'),
    Div([Arche.all([
      DocsEq,
      DocsGt,
      DocsLt,
      DocsGte,
      DocsLte,
   ])(props)]))

Some more ideas

    H1('Compare Values'),
    Div.all([DocsEq, DocsGt, DocsLt, DocsGte, DocsLte])(props),

    Div([DocsEq, DocsGt, DocsLt, DocsGte, DocsLte])(props),

This might also be a bad idea

@richytong richytong added enhancement New feature or request question Further information is requested labels Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant