chickadee » srfi-207 » bytestring-compare3

bytestring-compare3 bytevector₁ bytevector₂procedure

Returns -1, 0, or 1 if bytevector₁ is lexicographically less than, equal to, or greater than bytevector₂, respectively.

(Extension based on bytestring-compare3 from (chicken string).)

(bytestring-compare3 #u8"Zaphod" #u8"just Zaphod") ⇒ -1
(bytestring-compare3 #u8"gargleblaster" #u8"Vogon") ⇒ 1