view demo/more/select.ur @ 1151:de48dc2c9ee8

Allow .urp files without initial blank lines
author Adam Chlipala <adamc@hcoop.net>
date Sat, 06 Feb 2010 15:34:41 -0500
parents e46227efcbba
children
line wrap: on
line source
fun selectChar choices current =
    List.mapX (fn (ch, label) =>
                  <xml><option value={String.str ch} selected={current = Some ch}>{[label]}</option></xml>) choices