Function defaultEql [src]

Like std.mem.eql, but takes advantage of the fact that the lengths of a and b are known to be equal.

Prototype

pub fn defaultEql(a: []const u8, b: []const u8) bool

Parameters

a: []const u8b: []const u8

Source

pub fn defaultEql(a: []const u8, b: []const u8) bool { if (a.ptr == b.ptr) return true; for (a, b) |a_elem, b_elem| { if (a_elem != b_elem) return false; } return true; }