Conjugate a Latin verb: Difference between revisions
Content added Content deleted
(Replaced Wren translation by Go translation.) |
|||
Line 287: | Line 287: | ||
audiunt they hear |
audiunt they hear |
||
</pre> |
</pre> |
||
=={{header|jq}}== |
|||
{{trans|Wren}} |
|||
{{works with|jq}} |
|||
'''Works with gojq, the Go implementation of jq''' |
|||
<lang jq>def conjugate: |
|||
if endswith("are") | not |
|||
then "\(.) is not a first conjugation verb." | error |
|||
else .[0:-3] as $stem |
|||
| if $stem|length == 0 then "Stem cannot be empty." | error |
|||
else "Present indicative tense of '\(.)':", |
|||
( "o", "as", "at", "amus", "atis", "ant" |
|||
| " " + $stem + .), |
|||
"" |
|||
end |
|||
end; |
|||
("amare", "dare") |
|||
| conjugate</lang> |
|||
{{out}} |
|||
As for [[#Wren]]. |
|||
=={{header|Julia}}== |
=={{header|Julia}}== |