r_set type implementation

No related issue.