ref: ee42f7f682c2279b0e24f70979f41436ff655cd4
parent: d06c78fc24ed0d427a601d8883b937757172fa1a
author: Ori Bernstein <[email protected]>
date: Wed Dec 11 19:22:35 EST 2013
Add comments.
--- a/libstd/strstrip.myr
+++ b/libstd/strstrip.myr
@@ -8,10 +8,12 @@
const strrstrip : (str : byte[:] -> byte[:])
;;
+/* strip blanks from both head and tail of str */
const strstrip = {str
-> strrstrip(strfstrip(str))
}
+/* strip forward on str */
const strfstrip = {str
var c
@@ -22,6 +24,7 @@
}
+/* strip reverse on str */
const strrstrip = {str
var i
var end