libwren-sys 0.1.0

FFI bindings for the wren embedded programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
// This is a regression test for a bug where inserting in a map would not
// correctly reuse tombstone entries, eventually deadlocking on insert.
var map = {}

for (i in 0...100) {
  map[i] = i

  if (i >= 10) map.remove(i - 10)
}

System.print(map.count) // expect: 10