This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
RosettaCodeData
/
Task
/
Reverse-a-string
/
Prolog
/
reverse-a-string-2.pro
5 lines
91 B
Prolog
Raw
Permalink
Blame
History
accRev
(
[
H
|
T
]
,
A
,
R
)
:-
accRev
(
T
,
[
H
|
A
]
,
R
)
.
accRev
(
[
]
,
A
,
A
)
.
rev
(
L
,
R
)
:-
accRev
(
L
,
[
]
,
R
)
.
Reference in New Issue
View Git Blame
Copy Permalink