CSV to HTML translation: Difference between revisions

(→‎{{header|J}}: Icon and Unicon)
Line 115:
 
=={{header|Icon}} and {{header|Unicon}}==
This solution for the extra credit works in both Icon and Unicon.
The simple CSV is read from standard input and written to standard output. The presence/abscend of "-heading" in the argument list sets the variable thead to the procedure writes or a 1 (for more on this see [[Icon%2BUnicon/Intro#Conjunction.2C_yielding_a_different_result|Introduction to Icon/Unicon - Conjunction yielding different results]]).
 
<lang Icon>procedure main(arglist)
Line 134 ⟶ 136:
every write("</TBODY>")
end</lang>
 
 
=={{header|J}}==
Anonymous user