initial commit
This commit is contained in:
8
template/utils.typ
Normal file
8
template/utils.typ
Normal file
@@ -0,0 +1,8 @@
|
||||
#let assert_in_dict(needle, dict, item_name) = {
|
||||
if str(needle) not in dict {
|
||||
panic(
|
||||
"unknown " + item_name + " '" + str(needle) +
|
||||
"', expected one of: " + dict.keys().map((k) => { "'" + str(k) + "'" }).join(", ")
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user