Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
4
Task/Delete-a-file/Elixir/delete-a-file.elixir
Normal file
4
Task/Delete-a-file/Elixir/delete-a-file.elixir
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
File.rm!("input.txt")
|
||||
File.rmdir!("docs")
|
||||
File.rm!("/input.txt")
|
||||
File.rmdir!("/docs")
|
||||
14
Task/Delete-a-file/Mercury/delete-a-file.mercury
Normal file
14
Task/Delete-a-file/Mercury/delete-a-file.mercury
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
:- module delete_file.
|
||||
:- interface.
|
||||
|
||||
:- import_module io.
|
||||
|
||||
:- pred main(io::di, io::uo) is det.
|
||||
|
||||
:- implementation.
|
||||
|
||||
main(!IO) :-
|
||||
io.remove_file("input.txt", _, !IO),
|
||||
io.remove_file("/input.txt", _, !IO),
|
||||
io.remove_file("docs", _, !IO),
|
||||
io.remove_file("/docs", _, !IO).
|
||||
Loading…
Add table
Add a link
Reference in a new issue