test/test_vm in p-lang-0.3.0 vs test/test_vm in p-lang-0.3.1
- old
+ new
@@ -25,5 +25,8 @@
x = '(1,2,3,4) x->concat(10)->head()
x = '(1,2,3,4) x->concat(10)->tail()->head()
sum = [{empty}| 0]; [x| x->head() + sum(x->tail())] x = '(1,2,3,4) sum(x)
if(2>=2, 1, 2)
if(2<2, 1, 2)
+{a: {empty}, x} = {a: '(), 1} x
+{lambda: f, fs} -> one = [1] print->one()
+{lambda: f, fs} -> add_one = [x|1+x] print->add_one(3)
\ No newline at end of file