From 1e7e0c09d21d42d1b197a8f6fbf96c7a142266e4 Mon Sep 17 00:00:00 2001 From: eitsupi Date: Wed, 10 Jul 2024 10:04:04 +0000 Subject: [PATCH] chore: clean up comments --- R/expr-s3-base.R | 1 - R/expr-struct.R | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/R/expr-s3-base.R b/R/expr-s3-base.R index a1d7ef9cc..148910acf 100644 --- a/R/expr-s3-base.R +++ b/R/expr-s3-base.R @@ -6,7 +6,6 @@ print.polars_expr <- function(x, ...) { #' @export `[.polars_struct_namespace` <- function(x, i, ...) { - # x$field_by_index(i) if (is.numeric(i)) { x$field_by_index(i) } else if (is.character(i)) { diff --git a/R/expr-struct.R b/R/expr-struct.R index 705029a44..137851802 100644 --- a/R/expr-struct.R +++ b/R/expr-struct.R @@ -22,7 +22,7 @@ expr_struct_field_by_index <- function(index) { wrap() } -# TODO: change to dynamic dots? +# TODO: change to dynamic dots and implement `struct_multiple_fields` expr_struct_field <- function(name) { self$`_rexpr`$struct_field_by_name(name) |> wrap()