monotone array merge. does not work on streams. needs len to work.