-- -*- M2-comint -*- hash: 4861613327231181373

i1 : server = new JSONRPCServer

o1 = server

o1 : JSONRPCServer

i2 : registerMethod(server, "sum", plus)

i3 : registerMethod(server, "subtract", {"minuend", "subtrahend"}, difference)

i4 : handleRequest(server, makeRequest("sum", {1, 2, 4}, 1))

o4 = {"result": 7, "jsonrpc": "2.0", "id": 1}

i5 : handleRequest(server, makeRequest("subtract", {42, 23}, 2))

o5 = {"result": 19, "jsonrpc": "2.0", "id": 2}

i6 : methods server

o6 = {0 => (subtract,minuend,subtrahend)}
     {1 => 1 : (sum)                    }

o6 : NumberedVerticalList

i7 : remove(server, "sum")

o7 = 1 : (sum)

o7 : JSONRPCMethod

i8 : methods server

o8 = {0 => (subtract,minuend,subtrahend)}

o8 : NumberedVerticalList

i9 : 
