Sujet : India & France had their AI Bikini Moment (Was: Deephaven inspired me to name a predicate [first_by/2])
De : janburse (at) *nospam* fastmail.fm (Mild Shock)
Groupes : comp.lang.prologDate : 10. Feb 2025, 21:17:22
Autres entêtes
Message-ID : <vodmsd$25ad$1@solani.org>
References : 1
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 SeaMonkey/2.53.20
Hi,
India & France had their AI Bikini Moment.
Facinating behavior:
Macron Says He And PM Modi Will Push
https://www.youtube.com/watch?v=LwCK8yAnlkABut don't be fooled, things are possibly
more connected:
Synthesia: France's 109-billion-euro AI investment
https://www.youtube.com/watch?v=_uyo4RG0Q6IBye
Mild Shock schrieb:
Hi,
Suddently I got an allergy to name a predicate
distinct/2. It is not so obvious that distinct/1 and
distinct/2 are related. There is no constant C such that:
distinct(X) :- distinct(C, X).
Just joking, but for some consistency with the introduction
of group_by/4 and aggregate_by/4 I went for the
name first_by/2. The name is more intuitive:
?- [user].
p(1,a).
p(1,b).
p(2,c).
p(2,d).
p(2,e).
^Z
true.
Now some queries:
?- p(X,Y), write(X-Y), nl, fail; true.
1-a
1-b
2-c
2-d
2-e
true.
?- first_by(X, p(X,Y)), write(X-Y), nl, fail; true.
1-a
2-c
true.
Cool! The name is also used here with the same semantics:
https://deephaven.io/core/docs/reference/table-operations/group-and-aggregate/firstBy/