opal icon indicating copy to clipboard operation
opal copied to clipboard

Added pair combinator

Open sayon opened this issue 9 years ago • 2 comments

Instead of using >>= as a generic but a bit cumbersome way to work with tuples of arbitrary length, you can use <~~> to pair up combinators.

sayon avatar Aug 24 '16 12:08 sayon

@pyrocat101 thoughts?

tekknolagi avatar Mar 26 '17 01:03 tekknolagi

Missing the corresponding mli change:

val ( <~~> ) : ('token, 'a) parser -> ('token, 'b) parser -> ('token, ('a * 'b)) parser

Schmavery avatar Jan 04 '18 21:01 Schmavery