You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
269 B
15 lines
269 B
1 month ago
|
import std::collections::map;
|
||
|
|
||
|
def Codepoint = uint;
|
||
|
fn uint Codepoint.hash(Codepoint code) => code < 128 ? code : ((uint)code).hash();
|
||
|
def CodeMap = map::HashMap(<Codepoint, Codepoint>);
|
||
|
|
||
|
|
||
|
fn int main()
|
||
|
{
|
||
|
CodeMap m;
|
||
|
m.new_init();
|
||
|
m.free();
|
||
|
return 0;
|
||
|
}
|