rmk216 wrote:
Would anybody happen to know where I can find out more about the
underscore (operator?) in Oz?

Yup, read any book on the basics of Prolog. Its use is just about identical. Basically the underscore is an uninstantiated, nameless variable, that can unify with anything without having any further effect (i.e. it is not used subsequently). It is not an operator.

In extremely oversimplified terms you can consider it to mean "anything can go here"

E.g

fun {Head H|_} H end
fun {Tail _|T} T end

Try {Browse {Head [1 2 3]}} and {Browse {Tail [1 2 3]}} and you'll get the idea.
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to