Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Identity-matrix/LFE/identity-matrix-1.lfe
Normal file
8
Task/Identity-matrix/LFE/identity-matrix-1.lfe
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(defun identity
|
||||
((`(,m ,n))
|
||||
(identity m n))
|
||||
((m)
|
||||
(identity m m)))
|
||||
|
||||
(defun identity (m n)
|
||||
(lists:duplicate m (lists:duplicate n 1)))
|
||||
6
Task/Identity-matrix/LFE/identity-matrix-2.lfe
Normal file
6
Task/Identity-matrix/LFE/identity-matrix-2.lfe
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
> (identity 3)
|
||||
((1 1 1) (1 1 1) (1 1 1))
|
||||
> (identity 3 3)
|
||||
((1 1 1) (1 1 1) (1 1 1))
|
||||
> (identity '(3 3))
|
||||
((1 1 1) (1 1 1) (1 1 1))
|
||||
Loading…
Add table
Add a link
Reference in a new issue