Skip to content

Instantly share code, notes, and snippets.

@Vagabond
Created January 6, 2016 03:06
Show Gist options
  • Save Vagabond/15815b5ea78eb5c59a1c to your computer and use it in GitHub Desktop.
Save Vagabond/15815b5ea78eb5c59a1c to your computer and use it in GitHub Desktop.
hashmap_clear_pre(S) ->
S#state.hashmap /= undefined.
hashmap_clear_args(S) ->
[S#state.hashmap].
hashmap_clear(Hashmap) ->
hashmap:hashmap_clear(Hashmap).
hashmap_clear_next(S, _R, [_]) ->
S#state{map=[]}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment