view tests/strcspn.ur @ 2014:fee1f660139c

Added HTML5 Semantic Tags
author David Snider <david@davidsnider.net>
date Sat, 10 May 2014 20:38:13 -0400
parents 446e73902b09
children
line wrap: on
line source
fun main () : transaction page =
    s <- source "";
    return <xml><body>
      <ctextbox source={s}/>
      <button onclick={fn _ => v <- get s; alert (show (strcspn v "0123456789"))}/>
    </body></xml>