Hi,
I'm trying to implement an algorithm in Prolog, in which I have a list L = [b1, b2, b3] and facts of the genre Liga2 (b1, 5), Liga2 (b2, 1), Liga2 (b3, 3). My aim is to sort the list L according to the argument of Liga2, getting as a result L = [b2, b3, b5].
Anyone can help me?
Thanks
I'm trying to implement an algorithm in Prolog, in which I have a list L = [b1, b2, b3] and facts of the genre Liga2 (b1, 5), Liga2 (b2, 1), Liga2 (b3, 3). My aim is to sort the list L according to the argument of Liga2, getting as a result L = [b2, b3, b5].
Anyone can help me?
Thanks