blob: e094d1982b22fbc99a1db8bf86eb583e784c5c92 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-module(zoltan_kis2).
-export([get/2]).
-opaque data() :: gb_trees:tree().
-spec get(term(), data()) -> term().
get(Key, Data) ->
%% Should unopaque data for remote calls
case gb_trees:lookup(Key, Data) of
'none' -> 'undefined';
{'value', Val} -> Val
end.
|