In JavaScript it’s pretty common to use closures, very handy for example when making http requests, and remembering what you asked for. I.e.
var id = 3;
http_request (function (result) {
// I know I made the request for id 3,
// even though the result variable may not mention this
});
How do you do this in Elm? It seems that in Elm the result needs to tell my program what it was for.
Any suggestions?