MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / switchState

Function switchState

static/js/codemirror/mode/haskell/haskell.js:3–6  ·  view source on GitHub ↗
(source, setState, f)

Source from the content-addressed store, hash-verified

1CodeMirror.defineMode("haskell", function() {
2
3 function switchState(source, setState, f) {
4 setState(f);
5 return f(source, setState);
6 }
7
8 // These should all be Unicode extended, as per the Haskell 2010 report
9 var smallRE = /[a-z_]/;

Callers 2

normalFunction · 0.85
stringGapFunction · 0.85

Calls 2

setStateFunction · 0.50
fFunction · 0.50

Tested by

no test coverage detected