Set consolidation: Difference between revisions

Content added Content deleted
(→‎{{header|Ruby}}: change data(String->Symbol), correction of the control structure.)
m (→‎{{header|REXX}}: removed STYLE from the PRE html tag.)
Line 1,427: Line 1,427:
/*──────────────────────────────────isIn subroutine─────────────────────*/
/*──────────────────────────────────isIn subroutine─────────────────────*/
isIn: return wordpos(arg(1),arg(2))\==0 /*is (word) arg1 in set arg2? */</lang>
isIn: return wordpos(arg(1),arg(2))\==0 /*is (word) arg1 in set arg2? */</lang>
'''output''' when using the default supplied sample sets
'''output''' when using the default supplied sample sets:
<pre>
<pre style="overflow:scroll">
the old sets= {A,B} {C,D}
the old sets= {A,B} {C,D}
the new sets= {A,B} {C,D}
the new sets= {A,B} {C,D}