Skip to content

Commit 7c7cdf8

Browse files
authored
builtin: clean up array.v (#12784)
1 parent a58c539 commit 7c7cdf8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

vlib/builtin/array.v

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -513,36 +513,24 @@ pub fn (a &array) free() {
513513
// filter creates a new array with all elements that pass the test implemented by the provided function
514514
pub fn (a array) filter(predicate fn (voidptr) bool) array
515515

516-
struct ZZZTmp1 {}
517-
518516
// any tests whether at least one element in the array passes the test implemented by the
519517
// provided function. It returns true if, in the array, it finds an element for which the provided
520518
// function returns true; otherwise it returns false. It doesn't modify the array
521519
pub fn (a array) any(predicate fn (voidptr) bool) bool
522520

523-
struct ZZZTmp2 {}
524-
525521
// all tests whether all elements in the array pass the test implemented by the provided function
526522
pub fn (a array) all(predicate fn (voidptr) bool) bool
527523

528-
struct ZZZTmp3 {}
529-
530524
// map creates a new array populated with the results of calling a provided function
531525
// on every element in the calling array
532526
pub fn (a array) map(callback fn (voidptr) voidptr) array
533527

534-
struct ZZZTmp4 {}
535-
536528
// sort sorts an array in place in ascending order.
537529
pub fn (mut a array) sort(callback fn (voidptr, voidptr) int)
538530

539-
struct ZZZTmp5 {}
540-
541531
// contains determines whether an array includes a certain value among its entries
542532
pub fn (a array) contains(val voidptr) bool
543533

544-
struct ZZZTmp6 {}
545-
546534
// index returns the first index at which a given element can be found in the array
547535
// or -1 if the value is not found.
548536
pub fn (a array) index(value voidptr) int

0 commit comments

Comments
 (0)