juan_gandhi: (VP)
[personal profile] juan_gandhi
  def questionHTML(i: Int, q: String) =
    <span>
      <h3>Question {i+1}</h3>{q}
      <br/><br/><br/><br/><br/><br/>
  </span>

  def variantHTML(v: List[String]) =
    <p style="page-break-after:always;">
      <h1><center>{title}</center></h1>
      {v.zipWithIndex map {case(q,j) => questionHTML(j,q)}}
    </p>

  def html(variants: List[List[String]]) = {
    <html><body>{
      variants map variantHTML
    }</body></html>
  }

Date: 2014-12-06 06:06 am (UTC)
From: [identity profile] migmit.livejournal.com
Что-то я не понял, кто такой {title}.

Date: 2014-12-06 06:09 am (UTC)
From: [identity profile] juan-gandhi.livejournal.com
val title = "COEN 260 Final Exam 12/09/2014"

В следующий раз из файла возьму.
Edited Date: 2014-12-06 06:09 am (UTC)

Date: 2014-12-06 06:11 am (UTC)
From: [identity profile] migmit.livejournal.com
А. А зачем там i?

Date: 2014-12-06 06:27 am (UTC)
From: [identity profile] juan-gandhi.livejournal.com
Ой. Больше не буду.
Edited Date: 2014-12-06 06:28 am (UTC)

Date: 2014-12-06 07:51 am (UTC)
From: [identity profile] andybil.livejournal.com
Любой язык предназначен что бы описать видимое, рассказать про ранее увиденное, или про то, что хочется увидеть и ни для чего более.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 28th, 2025 03:16 pm
Powered by Dreamwidth Studios