kabstractWithPred
The function `kabstractWithPred` was never used, and introduced the bug exposed by issue #1235. fixes #1235