summaryrefslogtreecommitdiff
path: root/factor/examples/strings/strings.factor
blob: cf9bd6daeb0fc71fe20046b3a03024239f0cd8a6 (plain) (blame)
1
2
3
4
5
USING: kernel sequences ;
IN: examples.strings

: palindrome ( s -- bool )
    dup reverse equal? ;