# Pastebin y6WMZDoA fn orEnumToInt(comptime EnumType: type, comptime IntType: type, values: []EnumType) IntType { var totalValue: IntType = 0; for (values) |v| { totalValue |= @intCast(IntType, @enumToInt(v)); } return totalValue; }