PrefixTraversableOnce converted to the generic algo.
Still to check fo the null cases.