Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
fuss:lsl [2019/11/12 16:43]
office [Ternary Operator]
fuss:lsl [2019/11/12 16:46] (current)
office [Ternary Operator]
Line 4151: Line 4151:
  
 such that ''​a''​ will contain the value "​dog"​ when ''​c''​ is equal to ''​b''​ or the value ''​ball''​ otherwise. such that ''​a''​ will contain the value "​dog"​ when ''​c''​ is equal to ''​b''​ or the value ''​ball''​ otherwise.
 +
 +Remarkably, the expression preserves the same type constraints that a ternary operator would have: the type of ''​a''​ will be the same as either elements of the list (in this case converted via ''​llList2String''​) and the type of the variables ''​c''​ and ''​b''​ are free under the contraints of variables ''​a''​ and the values that ''​a''​ will hold (however, variables ''​c''​ and ''​b''​ must be of the same type).
  
  

fuss/lsl.txt ยท Last modified: 2019/11/12 16:46 by office

Access website using Tor Access website using i2p


For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy and plagiarism pages.