String comparison: Difference between revisions
Content added Content deleted
m (Added Sidef language) |
|||
Line 1,683: | Line 1,683: | ||
Original source: [http://seed7.sourceforge.net/algorith/string.htm#cmpNumeric] |
Original source: [http://seed7.sourceforge.net/algorith/string.htm#cmpNumeric] |
||
=={{header|Sidef}}== |
|||
{{trans|Ruby}} |
|||
<lang ruby>var methods = %w(== != > >= < <= <=>); |
|||
[%w(YUP YUP),%w(YUP Yup),%w(bot bat),%w(aaa zz)].each {|s1, s2| |
|||
methods.each{|m| "%s %s %s\t%s\n".printf(s1, m, s1, s1.(m)(s2))}; |
|||
print "\n"; |
|||
}</lang> |
|||
=={{Header|Swift}}== |
=={{Header|Swift}}== |