Expression evaluation
Expressions in Icon don’t (only) return a value
Rather, they succeed (and return a value) or fail
Ex: find(s1,s2) looks for string s1 in string s2
If it finds it, it succeeds and returns the index where s2 was found
Previous slide
Next slide
Back to first slide
View graphic version