numbers := memory.make_slice(Cell, numbers_str.count);
for numbers_str.count do numbers[it] = ~~ conv.str_to_i64(numbers_str[it]);
- boards := array.make(Board);
+ boards: [..] Board;
while !io.reader_empty(^reader) {
array.insert_empty(^boards, boards.count);
board := ^boards[boards.count - 1];
func = func[0]
}
}
-Map([] u8, i32) {
- allocator = Allocator {
- data = 0xB750,
- func = func[38]
+[
+ Map.Entry([] u8, i32) {
+ next = -1,
+ key = "Joe",
+ value = 12
},
- hashes = [
- -1,
- -1,
- -1,
- 1,
- -1,
- -1,
- -1,
- -1
- ],
- entries = [
- Map.Entry([] u8, i32) {
- next = -1,
- key = "Joe",
- value = 12
- },
- Map.Entry([] u8, i32) {
- next = 0,
- key = "Jane",
- value = 34
- }
- ],
- default_value = 0
-}
+ Map.Entry([] u8, i32) {
+ next = 0,
+ key = "Jane",
+ value = 34
+ }
+]
people: Map(str, i32);
people["Joe"] = 12;
people["Jane"] = 34;
- printf("{*p}\n", ^people);
+ printf("{*p}\n", ^people.entries);
}
}
\ No newline at end of file