Would it be possible to support the partition operator, similar to rxjs: https://rxjs.dev/api/index/function/partition