[UP]


Manual Reference Pages  - binary_search (3)

NAME

binary_search(3f) - [M_list] binary search of a sorted integer array.

CONTENTS

Syntax
Description
Options
Result

SYNTAX

pure function binary_search(id,arr) result(jloc)

   integer,intent(in)              :: id
   integer,dimension(:),intent(in) :: arr
   integer                         :: jloc

DESCRIPTION

Binary search is a search algorithm that finds the position of a target value within an integer sorted array.

OPTIONS

ID Keyword to match in ARR.
ARR Array to search.

RESULT

JLOC If found, ’JLOC’ is the matched position in ’ARR’. If not found, returns zero (0).


binary_search (3) June 28, 2019
Generated by manServer 1.08 from f9e6ceae-8e95-4241-8e83-15dea815bf28 using man macros.