Picat is a programming language created in 2012 by Neng-Fa Zhou and Jonathan Fruhman.
#1898on PLDB | 12Years Old |
import util.
input_data(Tri) =>
Lines = read_file_lines("triangle.txt"),
Tri = new_array(Lines.length),
I = 1,
foreach(Line in Lines)
Tri[I] = Line.split().map(to_integer).to_array(),
I := I+1
end.
main =>
println("Hello World").
Feature | Supported | Example | Token |
---|---|---|---|
Strings | ✓ | "Hello world" | " |
Print() Debugging | ✓ | println |