Pass Functions in Session and ReactiveDict?

Is it possible to pass functions into Session and ReactiveDict?