Code from functional reactive programming with iOS