diff lib/js/urweb.js @ 821:395a5d450cc0

Chars and more string operations
author Adam Chlipala <adamc@hcoop.net>
date Tue, 26 May 2009 12:25:06 -0400
parents 4585f744574a
children be0988e46336
line wrap: on
line diff
--- a/lib/js/urweb.js	Sat May 23 10:14:51 2009 -0400
+++ b/lib/js/urweb.js	Tue May 26 12:25:06 2009 -0400
@@ -351,6 +351,9 @@
 function ts(x) { return x.toString() }
 function bs(b) { return (b ? "True" : "False") }
 
+function sub(x, i) { return x[i]; }
+function suf(x, i) { return x.substring(i); }
+
 function pi(s) {
   var r = parseInt(s);
   if (r.toString() == s)