Arc Forumnew | comments | leaders | submitlogin
3 points by kens1 6097 days ago | link | parent

Headmatch seems broken too:

  arc> (headmatch "abcde" "abc")
  Error: "string-ref: index 3 out of range [0, 2] for string: \"abc\""
But maybe this is deliberate, because begins is a "safe" headmatch, with the arguments reversed:

  arc> (begins "abcde" "abc")
  t
  arc> (begins "abc" "abcde")
  nil
Trying to document this gives me indigestion.