Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Should concat be associative? #2

Open
jimf opened this issue Apr 10, 2016 · 0 comments
Open

Should concat be associative? #2

jimf opened this issue Apr 10, 2016 · 0 comments

Comments

@jimf
Copy link

jimf commented Apr 10, 2016

> Validation.Failure(['message1']).concat(Validation.Success('foo')).concat(Validation.Failure(['message2']))
definitions { f: [ 'message2' ] }

> Validation.Failure(['message1']).concat((Validation.Success('foo')).concat(Validation.Failure(['message2'])))
definitions { f: [ 'message1', 'message2' ] }

Just wanna make sure this is intentional. I was expecting both of these to return the aggregated failures.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant