Skip to content

Commit

Permalink
Update exercises/practice/reverse-string/.approaches/native-pipes/sni…
Browse files Browse the repository at this point in the history
…ppet.txt

Co-authored-by: Jon Calder <[email protected]>
  • Loading branch information
colinleach and jonmcalder authored Jan 18, 2024
1 parent b370ae6 commit c784cb7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
reverse <- function(text) {
strsplit(text, "") |>
lapply(rev) |>
sapply(paste, collapse = "")
rev() |>
paste(collapse = "")
}

0 comments on commit c784cb7

Please sign in to comment.