whole_func_string: function distinctUntilKeyChanged(keySelector) {
      return function* (it) {
          let prev = undefined;
          for (const item of it) {
              const key = keySelector(item);
              if (key === prev) {
                  continue;
              }
              prev = key;
              yield item;
          }
      };
  }
func_code_string: function distinctUntilKeyChanged(keySelector) {
      return function* (it) {
          let prev = undefined;
          for (const item of it) {
              const key = keySelector(item);
              if (key === prev) {
                  continue;
              }
              prev = key;
              yield item;
          }
      };
  }
func_documentation_string: Play items from a set, skipping ones that do not change