Skip to content

Commit

Permalink
tweak syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
chlebowa committed Dec 19, 2024
1 parent c1f1791 commit 9933e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/delayed_choices.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ last_choice <- function() {
return(x[length(x)])
}
x$subset <- function(data) {
modifier <- function(x) rev(x)[1L]
modifier <- function(x) x[length(x)]
Reduce(function(f, ...) f(...), c(x$subset, modifier), init = data, right = TRUE)
}
x
Expand Down

0 comments on commit 9933e15

Please sign in to comment.