Current section
Files
Jump to
Current section
Files
src/erl/lang/clojerl.Boolean.erl
-module('clojerl.Boolean').
-behavior('clojerl.IHash').
-behavior('clojerl.IStringable').
-export([hash/1]).
-export([str/1]).
-export_type([type/0]).
-type type() :: boolean().
%%------------------------------------------------------------------------------
%% Protocols
%%------------------------------------------------------------------------------
hash(true) -> erlang:phash2(true);
hash(false) -> erlang:phash2(false).
str(true) -> <<"true">>;
str(false) -> <<"false">>.