Sha256: 134cb2a5650b1513bea0c7f0f8646ebcf93a409b1aad9787443fa060ff7bdc4c

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

1
1.1
'a'
"word"
1+1
1.1+1
1+1.1
1/2
1.0/2
1/2.0
f = [x| x] f(10)
f = [x|x+1] f(10)
f = [x, y, z| x+y-z] f(10,9,8)
f = [1|1]; [2|1]; [n|f(n-1)+f(n-2)] f(10)
f = [1|1] f = [2|1] f = [n|f(n-1)+f(n-2)] f(10)
f = [1, x| x+1] f(1,10)
f = [x, {obj: y}| x+y] f(10, {obj: 15})
f = [1, {obj: {obj2: x}}| x] f(1, {obj: {obj2: "dog"}})
f = [1, {obj: {obj2: x}}| x->concat("s")] f(1, {obj: {obj2: "dog"}})
'a'->ord()
{obj: x} -> next = [x+1] x = {obj: 15} x->next()
begin(x=1, y=2, x+y)
x = '(1,2,3,4) x->head()
x = '(1,2,3,4) x->tail()->head()
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)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
p-lang-0.3.0 test/test_vm
p-lang-0.2.0 test/test_vm