update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
5
Task/Test-a-function/Ada/test-a-function-2.ada
Normal file
5
Task/Test-a-function/Ada/test-a-function-2.ada
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
function Palindrome (Text : String) return Boolean
|
||||
with Post => Palindrome'Result =
|
||||
(Text'Length < 2 or else
|
||||
((Text(Text'First) = Text(Text'Last)) and then
|
||||
Palindrome(Text(Text'First+1 .. Text'Last-1))));
|
||||
Loading…
Add table
Add a link
Reference in a new issue