Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
11
Task/Create-an-HTML-table/Clojure/create-an-html-table.clj
Normal file
11
Task/Create-an-HTML-table/Clojure/create-an-html-table.clj
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(ns rosettacode.html-table
|
||||
(:use 'hiccup.core))
|
||||
|
||||
(defn <tr> [el sq]
|
||||
[:tr (map vector (cycle [el]) sq)])
|
||||
|
||||
(html
|
||||
[:table
|
||||
(<tr> :th ["" \X \Y \Z])
|
||||
(for [n (range 1 4)]
|
||||
(->> #(rand-int 10000) (repeatedly 3) (cons n) (<tr> :td)))])
|
||||
Loading…
Add table
Add a link
Reference in a new issue