@Override public Result attempt( final List<AvailObject> args, final Interpreter interpreter, final boolean skipReturnCheck) { assert args.size() == 1; final AvailObject map = args.get(0); return interpreter.primitiveSuccess(ObjectTypeDescriptor.objectTypeFromMap(map)); }
@Override protected A_Type privateBlockTypeRestriction() { return FunctionTypeDescriptor.create( TupleDescriptor.from( MapTypeDescriptor.mapTypeForSizesKeyTypeValueType( IntegerRangeTypeDescriptor.wholeNumbers(), ATOM.o(), InstanceMetaDescriptor.anyMeta())), ObjectTypeDescriptor.meta()); }