Skip to content

Commit

Permalink
Update Column to use new operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Feb 24, 2025
1 parent 7b999bc commit 663644d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions distribution/lib/Standard/Table/0.0.0-dev/src/Column.enso
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ polyglot java import org.enso.table.data.column.operation.CountNothing
polyglot java import org.enso.table.data.column.operation.CountUntrimmed
polyglot java import org.enso.table.data.column.operation.SampleOperation
polyglot java import org.enso.table.data.column.operation.comparators.Comparators
polyglot java import org.enso.table.data.column.operation.text.TextPartOperation
polyglot java import org.enso.table.data.column.operation.text.TextPredicates
polyglot java import org.enso.table.data.column.operation.unary.DatePartOperation
polyglot java import org.enso.table.data.column.operation.unary.DateTruncateOperation
Expand Down Expand Up @@ -1318,10 +1319,9 @@ type Column
example_text_length =
Examples.text_column_1.text_left 5
text_left self (n : Column | Integer) -> Column =
Value_Type.expect_text self <|
Value_Type.expect_integer n <|
new_name = naming_helper.function_name "text_left" [self, n]
run_vectorized_binary_op self Java_Storage.Maps.TEXT_LEFT n new_name
Value_Type.expect_text self <| Value_Type.expect_integer n <|
new_name = naming_helper.function_name "text_left" [self, n]
_apply_case_sensitive_text_operation self n ..Default TextPartOperation.LEFT (a -> b -> a.take b) new_name

## GROUP Standard.Base.Text
ICON preparation
Expand All @@ -1338,10 +1338,9 @@ type Column
example_text_length =
Examples.text_column_1.text_right 5
text_right self (n : Column | Integer) -> Column =
Value_Type.expect_text self <|
Value_Type.expect_integer n <|
new_name = naming_helper.function_name "text_right" [self, n]
run_vectorized_binary_op self Java_Storage.Maps.TEXT_RIGHT n new_name
Value_Type.expect_text self <| Value_Type.expect_integer n <|
new_name = naming_helper.function_name "text_right" [self, n]
_apply_case_sensitive_text_operation self n ..Default TextPartOperation.RIGHT (a -> b -> a.take (..Last b)) new_name

## GROUP Standard.Base.Logical
ICON preparation
Expand Down

0 comments on commit 663644d

Please sign in to comment.