view demo/more/select.ur @ 1023:e46227efcbba

Bidding interface
author Adam Chlipala <adamc@hcoop.net>
date Sun, 01 Nov 2009 10:20:20 -0500
parents
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