Initial value argument to the scan operator should be optional. This way it can easily be used with the 'startWith' operator