tcr / corollary

Cross-compiler from Haskell to Rust, plus parser-haskell.
73 stars 5 forks source link

`const ()` #51

Open tcr opened 7 years ago

tcr commented 7 years ago

What is this?

IntMap.fromSet (const ())
tcr commented 7 years ago

Only used once, but it basically means an empty int set. (const returns a function which only returns the bound argument, i.e. ()).

tcr commented 7 years ago

const True and const False are used elsewhere also.