libwren-sys 0.1.0

FFI bindings for the wren embedded programming language
Documentation
1
2
3
4
5
6
7
var num = 4

System.print(num.clamp(0, 10)) // expect: 4
System.print(num.clamp(0, 1)) // expect: 1
System.print(2.clamp(0, 1)) // expect: 1
System.print((-1).clamp(0, 1)) // expect: 0
System.print((-1).clamp(-20, 0)) // expect: -1