mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
Flip order of hash
signature
This commit is contained in:
parent
5c6856d1d6
commit
f68cb3b0ed
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ Hash has
|
|||
## Hashes a value into a [Hasher].
|
||||
## Note that [hash] does not produce a hash value itself; the hasher must be
|
||||
## [complete]d in order to extract the hash value.
|
||||
hash : a, hasher -> hasher | a has Hash, hasher has Hasher
|
||||
hash : hasher, a -> hasher | a has Hash, hasher has Hasher
|
||||
|
||||
## Describes a hashing algorithm that is fed bytes and produces an integer hash.
|
||||
##
|
||||
|
|
|
@ -7833,9 +7833,9 @@ mod solve_expr {
|
|||
|
||||
Noop := {} has [Hash {hash}]
|
||||
|
||||
hash = \@Noop {}, hasher -> hasher
|
||||
hash = \hasher, @Noop {} -> hasher
|
||||
|
||||
main = \hasher -> hash (@Noop {}) hasher
|
||||
main = \hasher -> hash hasher (@Noop {})
|
||||
"#
|
||||
),
|
||||
"hasher -> hasher | hasher has Hasher",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue