From 73198ac27fa2b08e6b16eace3a75bc56a068206c Mon Sep 17 00:00:00 2001 From: Drahflow Date: Mon, 4 Jul 2016 13:11:45 +0200 Subject: Added info about index when no element is found --- doc/global.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/global.md b/doc/global.md index b203c5d..5d034e0 100644 --- a/doc/global.md +++ b/doc/global.md @@ -856,7 +856,7 @@ Returns a new array consisting of those element indices for which *p* returned n ------- Takes a function object *p* and an array from the stack. Starting from the start of the array, each element is pushed -and *p* invoked. Returns the lowest array index for which *p* returns non-zero. +and *p* invoked. Returns the lowest array index for which *p* returns non-zero, or -1 if no such index exists. [ /b /a /b /b /a ] { /a eq } index dump 0000000000000001 -- cgit v1.2.3