You need this because foldp expects a function with two inputs. In this case, the first input is simply ignored by your lambda, but the foldp implementation still puts something there. Mouse.clicks always puts some do-nothing value called Unit .
Some signals have a meaning associated with them, such as Mouse.position . If you want to do something like how far the mouse has moved, you will need to use this option.
source share