lib/betagouvbot/sorting_hat.rb
def reconcile(all, current_members, computed_members, listname)
        unsubscribe_current(all, current_members, computed_members, listname)
          .<<(subscribe_new(current_members, computed_members, listname))
          .flatten
      end
# Input: a date
# Input: a list of members' arrivals and departures
# Side-effect: keeps current members subscribed to one list and alumni to another
a date
Input: a list of members' arrivals and departures
Side-effect: keeps current members subscribed to one list and alumni to another
a date Input : a list of members ' arrivals and departures Side - effect : keeps current members subscribed to one list and alumni to another
def reconcile(all, current_members, computed_members, listname)
        unsubscribe_current(all, current_members, computed_members, listname)
          .<<(subscribe_new(current_members, computed_members, listname))
          .flatten
      end
def reconcile ( all , current_members , computed_members , listname ) unsubscribe_current ( all , current_members , computed_members , listname ) . << ( subscribe_new ( current_members , computed_members , listname ) ) . flatten end
Input: a date
Input: a list of members' arrivals and departures
Side-effect: keeps current members subscribed to one list and alumni to another
Input : a date Input : a list of members ' arrivals and departures Side - effect : keeps current members subscribed to one list and alumni to another
all
current_members
computed_members
listname