fork download
  1. :- set_prolog_flag(verbose,silent).
  2. :- prompt(_, '').
  3. :- use_module(library(readutil)).
  4.  
  5.  
  6.  
  7. main:-
  8. process,
  9.  
  10. process:-
  11. /* your code goes here */
  12. birthday(year,1990,month,8,day,15)=K,
  13. K=..L,
  14. write(L),
  15. arg(2,K,YYYY),
  16. write(YYYY),nl,
  17. functor(K,X,Y),
  18. write([X,Y]),
  19. false.
  20. process.
  21. :- main.
Success #stdin #stdout 0.03s 6336KB
stdin
Standard input is empty
stdout
[birthday,year,1990,month,8,day,15]1990
[birthday,6]