Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Arithmetic-Complex/LFE/arithmetic-complex-5.lfe
Normal file
11
Task/Arithmetic-Complex/LFE/arithmetic-complex-5.lfe
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(defun ->str
|
||||
(((match-complex real r img i)) (when (>= i 0))
|
||||
(->str r i "+"))
|
||||
(((match-complex real r img i))
|
||||
(->str r i "")))
|
||||
|
||||
(defun ->str (r i pos)
|
||||
(io_lib:format "~p ~s~pi" `(,r ,pos ,i)))
|
||||
|
||||
(defun print (cmplx)
|
||||
(io:format (++ (->str cmplx) "~n")))
|
||||
Loading…
Add table
Add a link
Reference in a new issue