function MousePosition() {
    return signal(function (next) {
        document.addEventListener("mousemove", function (event) {
            next(getXY(event))
        })
    }, new Point(0, 0))
}
function MousePosition() {
    return signal(function (next) {
        document.addEventListener("mousemove", function (event) {
            next(getXY(event))
        })
    }, new Point(0, 0))
}
function MousePosition ( ) { return signal ( function ( next ) { document . addEventListener ( "mousemove" , function ( event ) { next ( getXY ( event ) ) } ) } , new Point ( 0 , 0 ) ) }
Signal { x: Int, y: Int }
Signal { x : Int y : Int }