I don't think you mean `f(s)` here.  `f` is a function on items of `s`, right?