List manipulation operations based on fold-right