Nix/tests/lang/eval-okay-hash.nix
Marc Weber 01a5ea9914 experimental/hash
adding primop function calculating hash of a string

Signed-off-by: Marc Weber <marco-oweber@gmx.de>
2013-02-08 19:26:34 +01:00

7 lines
168 B
Nix

let
md5 = builtins.hash "md5";
sha256 = builtins.hash "sha256";
strings = [ "text 1" "text 2" ];
in
(builtins.map md5 strings) ++ (builtins.map sha256 strings)