@@ -339,6 +339,7 @@ To invoke a function for each `src` value, provide a callback function. If `src`
339339var Complex128 = require ( ' @stdlib/complex/float64/ctor' );
340340var real = require ( ' @stdlib/complex/float64/real' );
341341var imag = require ( ' @stdlib/complex/float64/imag' );
342+
342343function map ( z ) {
343344 return new Complex128 ( real (z)* 2.0 , imag (z)* 2.0 );
344345}
@@ -773,6 +774,7 @@ Returns a new array containing the elements of an array which pass a test implem
773774``` javascript
774775var real = require ( ' @stdlib/complex/float64/real' );
775776var imag = require ( ' @stdlib/complex/float64/imag' );
777+
776778function predicate ( v ) {
777779 return ( real ( v ) === imag ( v ) );
778780}
@@ -841,6 +843,7 @@ Returns the first element in an array for which a predicate function returns a t
841843``` javascript
842844var real = require ( ' @stdlib/complex/float64/real' );
843845var imag = require ( ' @stdlib/complex/float64/imag' );
846+
844847function predicate ( v ) {
845848 return ( real ( v ) === imag ( v ) );
846849}
@@ -867,6 +870,7 @@ To set the function execution context, provide a `thisArg`.
867870``` javascript
868871var real = require ( ' @stdlib/complex/float64/real' );
869872var imag = require ( ' @stdlib/complex/float64/imag' );
873+
870874function predicate ( v , i ) {
871875 this .count += 1 ;
872876 return ( i >= 0 && real ( v ) === imag ( v ) );
@@ -959,6 +963,7 @@ Returns the last element in an array for which a predicate function returns a tr
959963``` javascript
960964var real = require ( ' @stdlib/complex/float64/real' );
961965var imag = require ( ' @stdlib/complex/float64/imag' );
966+
962967function predicate ( v ) {
963968 return ( real ( v ) === imag ( v ) );
964969}
@@ -985,6 +990,7 @@ To set the function execution context, provide a `thisArg`.
985990``` javascript
986991var real = require ( ' @stdlib/complex/float64/real' );
987992var imag = require ( ' @stdlib/complex/float64/imag' );
993+
988994function predicate ( v , i ) {
989995 this .count += 1 ;
990996 return ( i >= 0 && real ( v ) === imag ( v ) );
0 commit comments