Fork me on GitHub
#specter
<
2016-08-15
>
yonatanel07:08:49

In the bank account example, is it possible to collect money from several accounts until a certain sum is reached or no more money is available? Is it then possible to get all the collections made (account+amount pairs) for event sourcing?

nathanmarz09:08:46

@yonatanel: you could do a subselect of all the accounts and then do an srange-dynamic to choose the first N accounts that sum up to what you're looking for

yonatanel10:08:51

Thanks. I'll check it out.

cdine15:08:51

@nathanmarz: Just stopping by, to say thanks for this wonderful library. Great showcase of what simple and powerful abstractions can do..

nathanmarz15:08:28

@cdine: thanks, glad you're enjoying it