Last active
January 11, 2016 13:31
-
-
Save dmitriid/e2b8200a62db7590b7b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_status_url_prop() -> | |
?FORALL( {Username, Lower} | |
, gen_username() | |
, <<"profiles/", Lower/binary ,"/data/status.json">> == util_content:get_status_url(Username) | |
). | |
gen_username() -> | |
?LET( Username | |
, list(char()) | |
, begin | |
Binary = list_to_binary(Username), | |
LowerCase = list_to_binary(string:to_lower(Username)), | |
{Binary, LowerCase} | |
end | |
). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment