[Issue #91] sequence and chain should be able to take functions