Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wltsmrz committed Nov 15, 2020
1 parent 8a8e839 commit f6f6ec1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ Carp bindings for murmurhash3

(defn-do main []
; 32 bit hash, returns uint32
(IO.println &(Uint32.str (Murmur3.hash-32x1 (String.to-bytes "whatever") 90210)))
(IO.println &(Uint32.str (Murmur3.hash-32x1 &(String.to-bytes "whatever") 90210)))
; 128 bit hash, returns array of four uint32
(IO.println &(Array.str &(Murmur3.hash-32x4 (String.to-bytes "whatever") 90210)))
(IO.println &(Array.str &(Murmur3.hash-32x4 &(String.to-bytes "whatever") 90210)))
; 128 bit hash, returns array of 2 uint64
(IO.println &(Array.str &(Murmur3.hash-64x2 (String.to-bytes "whatever") 90210)))
(IO.println &(Array.str &(Murmur3.hash-64x2 &(String.to-bytes "whatever") 90210)))

; 32 bit hash, returns hex string
(IO.println &(Murmur3.hash-32x1-hex (String.to-bytes "whatever") 90210))
(IO.println &(Murmur3.hash-32x1-hex &(String.to-bytes "whatever") 90210))
; 128 bit hash, returns hex string
(IO.println &(Murmur3.hash-32x4-hex (String.to-bytes "whatever") 90210))
(IO.println &(Murmur3.hash-32x4-hex &(String.to-bytes "whatever") 90210))
; 128 bit hash, returns hex string
(IO.println &(Murmur3.hash-64x2-hex (String.to-bytes "whatever") 90210))
(IO.println &(Murmur3.hash-64x2-hex &(String.to-bytes "whatever") 90210))
)
```

0 comments on commit f6f6ec1

Please sign in to comment.