Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :- module varadic.
- :- interface.
- :- import_module io.
- :- pred main(io::di, io::uo) is det.
- :- implementation.
- :- import_module type_desc.
- :- type v(T, U)
- ---> T, U.
- main(!IO) :-
- X = (1, 2, 3, 4, "What", "Ha!", 6.8, "IT WORKS!"),
- print(X, !IO), nl(!IO),
- print(type_of(X), !IO), nl(!IO).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement