Example #1
0
        public SetValue Function(SetValue set1, Value id)
        {
            if (id is MatrixValue)
            {
                set1.RemoveElements((id as MatrixValue).ToArray());
            }
            else
            {
                set1.Set.Remove(new SetValue.ValueWrap(id));
            }

            return(set1);
        }
Example #2
0
            public SetValue Function(Value id)
            {
                SetValue set = @this as SetValue;

                if (ReferenceEquals(set, null))
                {
                    throw new YAMPSetsFunctionNotMemberException("SetRemove");
                }

                if (id is MatrixValue)
                {
                    set.RemoveElements((id as MatrixValue).ToArray());
                }
                else
                {
                    set.Set.Remove(new SetValue.ValueWrap(id));
                }
                return(set);
            }