From 76c800ffb66f0130fdc3d87406360652de792d65 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 19 Dec 2019 23:49:40 +0300 Subject: [PATCH] bring back array.eq --- vlib/builtin/array.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/builtin/array.v b/vlib/builtin/array.v index 8ca220ace1..530b379fcc 100644 --- a/vlib/builtin/array.v +++ b/vlib/builtin/array.v @@ -453,7 +453,6 @@ pub fn (a []int) reduce(iter fn(accum, curr int)int, accum_start int) int { // array_eq checks if two arrays contain all the same elements in the same order. // []int == []int (also for: i64, f32, f64, byte, string) -/* fn array_eq(a1, a2 []T) bool { if a1.len != a2.len { @@ -486,4 +485,4 @@ pub fn (a []byte) eq(a2 []byte) bool { pub fn (a []f32) eq(a2 []f32) bool { return array_eq(a, a2) } -*/ +