Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added SetReg method #324

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

added SetReg method #324

wants to merge 4 commits into from

Commits on Mar 30, 2024

  1. added SetReg method

    Set()
    * Create obj
      Set({})
      Set( ...) --> Set({...})
    * methods
       obj_set:keys()  -- return list of key
       obj_set:set(key) -- return self
       obj_unset:(key) -- return self
    * operator
     <<  : obj_set = Set() << key1 << key2 << key3 -- set
     >> : obj_set = Set() >> key1 >> key2 ; --  unset
      &  : obj_set1  & obj_set2 --> return obj_set3
      |  : obj_set1 | obj_set2 --> return obj_set3
      ==   :  obj_set1 == obj_set2 --> return bool
    shewer authored Mar 30, 2024
    Configuration menu
    Copy the full SHA
    43cb4ff View commit details
    Browse the repository at this point in the history
  2. remove iostream

    shewer authored Mar 30, 2024
    Configuration menu
    Copy the full SHA
    67e2aa1 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2024

  1. fixed raw_equal()

    shewer authored Mar 31, 2024
    Configuration menu
    Copy the full SHA
    b65cd3f View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. add __bxor

    a=Set{'a','b'} 
    b=Set{'a','b','c'}
    c = a ~ b  -- {'c'}
    d= b ~ a  --  {'c'}
    
    a==b ---> 等同   c = a ~ b ; c:empty()
    shewer authored Apr 1, 2024
    Configuration menu
    Copy the full SHA
    bbbe870 View commit details
    Browse the repository at this point in the history