setab.fun 342 B

1234567891011121314151617181920
  1. #import std
  2. #import nat
  3. #import tbl
  4. headings = # a list of trees of lists of strings
  5. <
  6. <'name'>^: <>,
  7. <'foo'>^: <<'bar','baz'>^: <>,<'rank'>^: <>>>
  8. body = # a list of lists of columns
  9. <
  10. <<'u','v','w'>,<7.,8.,9.>,<0.,1.,2.>>,
  11. <<'x','y','z'>,<1.,2.,3.>,<4.,5.,6.>>>
  12. #output dot'tex' ~&
  13. setab = sectioned_table3(headings,body)