Synopsis Less than operator on node values.
Syntax `Exp1 < Exp2`
Types
`Exp1` `Exp2` `Exp1 < Exp2`
`node` `node` `bool`
Description Comparison on nodes is defined by a lexicographic ordering. Node `N = F(N1, ..., Nn)` is less than node `N = G(M1, ..., Mm)` when:
• `N` is not equal to `M`, and
• `F` is lexicographically less than `G`, or `F` is equal to `G` and `n < m`.
Examples
```rascal>"f"(10, "abc") < "g"(3);
bool: true
rascal>"f"(10) < "f"(10, "abc");
bool: true
``` Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.
{"ft_lang_label":"__label__en","ft_lang_prob":0.5516694,"math_prob":0.98070705,"size":424,"snap":"2021-31-2021-39","text_gpt3_token_len":137,"char_repetition_ratio":0.104761906,"word_repetition_ratio":0.0,"special_character_ratio":0.33726415,"punctuation_ratio":0.22619048,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9551034,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-20T23:52:20Z\",\"WARC-Record-ID\":\"<urn:uuid:e92d0c33-d1af-43a7-9aa5-0f91dbf32e2d>\",\"Content-Length\":\"5734\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2033e375-1afa-423c-91d7-28c08fb142b6>\",\"WARC-Concurrent-To\":\"<urn:uuid:f1712de7-4181-4b3a-afa4-5133d718778c>\",\"WARC-IP-Address\":\"172.67.194.223\",\"WARC-Target-URI\":\"https://tutor.rascal-mpl.org/Rascal/Expressions/Values/Node/LessThan/LessThan.html\",\"WARC-Payload-Digest\":\"sha1:BJFGZULTPU65XHMSZJC3IKXNX3FVGL6K\",\"WARC-Block-Digest\":\"sha1:P3EDSYUEAGV43MMGQ4MKMUWAJCKROVFC\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057119.85_warc_CC-MAIN-20210920221430-20210921011430-00136.warc.gz\"}"}