ChaiScript/unittests/retro.chai

5 lines
76 B
ChaiScript

var x = [1, 2, 3, 4]
var r = retro(range(x))
r.pop_front()
print(r.front())