Skip to content

Commit

Permalink
Update distribution/lib/Standard/Base/0.0.0-dev/src/Data/Vector.enso
Browse files Browse the repository at this point in the history
Co-authored-by: Radosław Waśko <[email protected]>
  • Loading branch information
jdunkerley and radeusgd authored Mar 2, 2022
1 parent eb7e908 commit 63cb457
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ type Vector
Splitting a vector into elements at even and odd positions.

["a", "b", "c", "d"].partition_with_index (ix -> _ -> ix % 2 == 0) == (Pair ["a", "c"] ["b", "d"])
partition_with_index : (Integer -> Any -> Boolean) -> Pair Vector Any Vector Any
partition_with_index : (Integer -> Any -> Boolean) -> Pair (Vector Any) (Vector Any)
partition_with_index predicate =
pair = this.fold_with_index (Pair here.new_builder here.new_builder) acc-> ix-> elem->
case predicate ix elem of
Expand Down

0 comments on commit 63cb457

Please sign in to comment.