Exercises in this lecture   Go to the notes, in which this exercise belongs
Keyboard shortcut: 'u'   Alphabetic index   Course home      

Exercise 1.2
A tabular list of input


Read a linear list of data from a file. You can assume that the data is represented as a Lisp list.

Present the data on HTML page using a table in one of the following ways:

  • Each consequtive n elements from the list forms a table row.
  • Each consequtive n elements from the ist forms a table column.

You can assume that n is positive integer.

Example: If we input the list

   (1 2 3 4 5 6 7 8)

with n = 3 into columns we get the table

147
258
36

You can make your own table function, or you can use one of the table functions from LAML (in the convenience library).

The table functions typically require a list of rows. You can program your own functions that make these rows from your input list, or you can use the function sublist-by-rows and sublist-by-columns (from the general library).


There is no solution to this exercise