String comparison: Difference between revisions
m
→{{header|J}}: add usage note
(→{{header|jq}}: updates) |
m (→{{header|J}}: add usage note) |
||
Line 2,392:
ge=: {.@/:@,&boxopen +. eq NB. lexically greater than or equal to
le=: -.@{.@/:@,&boxopen NB. lexically less than or equal to</syntaxhighlight>
Note that <code>boxopen</code> is used here so that these operations do not distinguish between the types <i>sequence of characters</i> and <i>boxed sequence of characters</i>. If distinguishing between these types would be desirable, <code>boxopen</code> should be replaced with <code>></code> or a separate test should also be used, such as <code>-:&datatype</code>.
'''Usage:'''
|