view tests/strcspn.ur @ 1794:4671afac15af

Change 'spawn' implementation to allow blocking within <active code>
author Adam Chlipala <adam@chlipala.net>
date Wed, 25 Jul 2012 08:20:15 -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>