Add scanl/r

@garyb Mind reviewing please?