This=That 3.0

From Esolang
Jump to navigation Jump to search

This=That 3.0 extends This=That 2.0 and This=That. It adds some special features, such as recursion and functions. For example:

function MyFunction=param,param2

starts a function called Myfunction, with params "param" and "param2". Params can be deleted(as nothing).

end function Myfunction

ends a function called Myfunction. To call:

start function Myfunction

And also:

a=1->100
for loop x=a

starts a for loop with the array range of a. a becomes the current number every time executed.

end for loop x

ends a for loop called x.

Programs

99 bottles of beer(for loop) Actually, that is unformatted...

function NN=
    a=print
    b=print
    a=print
    c=print
    d=print
    a minus 1=print
    b=print
end function NN
a=99->0
b= bottles of beer on the wall.
c= bottles of beer.
d=Take one down. pass it around,
for loop f=a
    start function NN
end for loop f

See also