@@ -602,15 +602,15 @@ fn eval_array_sort(arr: &Arc<[Value]>) -> Result<Value, InterpreterError> {
602602}
603603
604604/// PIPELINE-001: Reverse array order
605- /// Enables: arr |> reverse or arr.reverse()
605+ /// Enables: arr |> reverse or ` arr.reverse()`
606606fn eval_array_reverse ( arr : & Arc < [ Value ] > ) -> Result < Value , InterpreterError > {
607607 let mut reversed = arr. to_vec ( ) ;
608608 reversed. reverse ( ) ;
609609 Ok ( Value :: Array ( Arc :: from ( reversed) ) )
610610}
611611
612612/// BOOK-200: Sum all numeric elements in array
613- /// Enables: [1, 2, 3] |> sum() => 6
613+ /// Enables: [1, 2, 3] |> ` sum()` => 6
614614fn eval_array_sum ( arr : & Arc < [ Value ] > ) -> Result < Value , InterpreterError > {
615615 let mut int_sum: i64 = 0 ;
616616 let mut float_sum: f64 = 0.0 ;
@@ -639,7 +639,7 @@ fn eval_array_sum(arr: &Arc<[Value]>) -> Result<Value, InterpreterError> {
639639}
640640
641641/// BOOK-200: Compute product of all numeric elements
642- /// Enables: [1, 2, 3] |> product() => 6
642+ /// Enables: [1, 2, 3] |> ` product()` => 6
643643fn eval_array_product ( arr : & Arc < [ Value ] > ) -> Result < Value , InterpreterError > {
644644 if arr. is_empty ( ) {
645645 return Ok ( Value :: Integer ( 1 ) ) ; // Identity for multiplication
@@ -672,7 +672,7 @@ fn eval_array_product(arr: &Arc<[Value]>) -> Result<Value, InterpreterError> {
672672}
673673
674674/// BOOK-200: Find minimum numeric element
675- /// Enables: [3, 1, 4] |> min() => 1
675+ /// Enables: [3, 1, 4] |> ` min()` => 1
676676fn eval_array_min ( arr : & Arc < [ Value ] > ) -> Result < Value , InterpreterError > {
677677 if arr. is_empty ( ) {
678678 return Ok ( Value :: Nil ) ;
@@ -705,7 +705,7 @@ fn eval_array_min(arr: &Arc<[Value]>) -> Result<Value, InterpreterError> {
705705}
706706
707707/// BOOK-200: Find maximum numeric element
708- /// Enables: [3, 1, 4] |> max() => 4
708+ /// Enables: [3, 1, 4] |> ` max()` => 4
709709fn eval_array_max ( arr : & Arc < [ Value ] > ) -> Result < Value , InterpreterError > {
710710 if arr. is_empty ( ) {
711711 return Ok ( Value :: Nil ) ;
@@ -768,7 +768,7 @@ fn eval_array_skip(arr: &Arc<[Value]>, count: &Value) -> Result<Value, Interpret
768768}
769769
770770/// BOOK-200: Zip two arrays together into array of tuples
771- /// Enables: [1, 2].zip(["a", "b"]) => [(1, "a"), (2, "b")]
771+ /// Enables: ` [1, 2].zip(["a", "b"]) => [(1, "a"), (2, "b")]`
772772fn eval_array_zip ( arr : & Arc < [ Value ] > , other : & Value ) -> Result < Value , InterpreterError > {
773773 match other {
774774 Value :: Array ( other_arr) => {
0 commit comments