@@ -1113,11 +1113,6 @@ function_is_instance(Type, X) ->
1113
1113
% % TODO: what if it's not a function we produced?
1114
1114
andalso equal_types (RetType , proper_gen :get_ret_type (X )).
1115
1115
1116
- % % @doc A map associating keys and values of unspecified types (of any term()).
1117
- -spec map () -> proper_types :type ().
1118
- map () ->
1119
- ? LAZY (map (any (), any ())).
1120
-
1121
1116
% % @doc A map whose keys are defined by the generator `K' and values
1122
1117
% % by the generator `V'.
1123
1118
-spec map (K :: raw_type (), V :: raw_type ()) -> proper_types :type ().
@@ -1177,6 +1172,10 @@ number() -> union([integer(), float()]).
1177
1172
-spec boolean () -> proper_types :type ().
1178
1173
boolean () -> union (['false' , 'true' ]).
1179
1174
1175
+ % % @equiv integer(0, 255)
1176
+ -spec arity () -> proper_types :type ().
1177
+ arity () -> integer (0 , 255 ).
1178
+
1180
1179
% % @equiv integer(0, 255)
1181
1180
-spec byte () -> proper_types :type ().
1182
1181
byte () -> integer (0 , 255 ).
@@ -1197,14 +1196,14 @@ list() -> list(any()).
1197
1196
-spec tuple () -> proper_types :type ().
1198
1197
tuple () -> loose_tuple (any ()).
1199
1198
1199
+ % % @equiv map(any(), any())
1200
+ -spec map () -> proper_types :type ().
1201
+ map () -> map (any (), any ()).
1202
+
1200
1203
% % @equiv list(char())
1201
1204
-spec string () -> proper_types :type ().
1202
1205
string () -> list (char ()).
1203
1206
1204
- % % @equiv weighted_union(FreqChoices)
1205
- -spec wunion ([{frequency (),raw_type ()},...]) -> proper_types :type ().
1206
- wunion (FreqChoices ) -> weighted_union (FreqChoices ).
1207
-
1208
1207
% % @equiv any()
1209
1208
-spec term () -> proper_types :type ().
1210
1209
term () -> any ().
@@ -1213,9 +1212,9 @@ term() -> any().
1213
1212
-spec timeout () -> proper_types :type ().
1214
1213
timeout () -> union ([non_neg_integer (), 'infinity' ]).
1215
1214
1216
- % % @equiv integer(0, 255 )
1217
- -spec arity ( ) -> proper_types :type ().
1218
- arity ( ) -> integer ( 0 , 255 ).
1215
+ % % @equiv weighted_union(FreqChoices )
1216
+ -spec wunion ([{ frequency (), raw_type ()},...] ) -> proper_types :type ().
1217
+ wunion ( FreqChoices ) -> weighted_union ( FreqChoices ).
1219
1218
1220
1219
1221
1220
% %------------------------------------------------------------------------------
0 commit comments