Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
s@(String traits) isPalindrome
|
||||
[
|
||||
(s lexicographicallyCompare: s reversed) isZero
|
||||
].
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
s@(Sequence traits) isPalindrome
|
||||
[
|
||||
s isEmpty
|
||||
ifTrue: [True]
|
||||
ifFalse: [(s first = s last) /\ [(s sliceFrom: 1 to: s indexLast - 1) isPalindrome]]
|
||||
].
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
define: #p -> 'ingirumimusnocteetconsumimurigni'.
|
||||
inform: 'sequence ' ; p ; ' is ' ; (p isPalindrome ifTrue: [''] ifFalse: ['not ']) ; 'a palindrome.'.
|
||||
Loading…
Add table
Add a link
Reference in a new issue