From c10e5f4e73288c3b12c3511750ac881c656313da Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Sun, 8 Jun 2014 00:00:17 -0500 Subject: [PATCH] Document `index` and `rindex` (#389) --- docs/content/3.manual/manual.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index e64de245..9023a8a9 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -1002,6 +1002,17 @@ sections: input: '{"foo": 12, "bar":[1,2,{"barp":12, "blip":13}]}' output: ['false'] + - title: `index(s)`, `rindex(s)` + body: | + + Outputs the index of the first (`index`) or last (`rindex`) + occurrence of `s` in the input. + + examples: + - program: '[index(", "), rindex(", ")' + input: '"a,b, cd, efg, hijk"' + output: ['[3,12]'] + - title: `startswith` body: |