-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Other ordinals than First and Last #51
Comments
No way! (for Minus) |
+1 for Nth |
Yes I find it very ugly, and this might trigger huge communications if one user ask for the billionth item. |
My 2 cents:
|
I'm not sure that these two languages have the best readability. It's not because some other people do something that this thing is good. |
I think the two operators are useful, but not now. Wa can add the minus And I like the name nth, it is much more popular in english than the two |
This issue was still opened here: #35 Here's what it says (i closed the issue):
|
I think we all agree on the use cases of the operator. Two questions remain:
|
On 16/02/2015 15:05, Thomas Tanon wrote:
|
@progval: +1 |
Cf. ProjetPP/PPP-QuestionParsing-Grammatical#95 (comment)
I don't see any way to describe a question such as "Who is the fourth president of the United States?" with the current datamodel.
We should add an operator for this.
Two alternatives:
Nth(l,n)
returns then
-th element of the listl
.Minus(l1,l2)
returns the list containing the elements ofl1
which are not inl2
.We have
Nth(l,4) = First(Minus(Minus(Minus(l,First(l)),First(l)),First(l)))
.The text was updated successfully, but these errors were encountered: