MCPcopy
hub / github.com/reflex-dev/reflex / pluck

Method pluck

packages/reflex-base/src/reflex_base/vars/sequence.py:312–321  ·  view source on GitHub ↗

Pluck a field from the array. Args: field: The field to pluck from the array. Returns: The array pluck operation.

(self, field: StringVar | str)

Source from the content-addressed store, hash-verified

310 return array_contains_operation(self, other)
311
312 def pluck(self, field: StringVar | str) -> ArrayVar:
313 """Pluck a field from the array.
314
315 Args:
316 field: The field to pluck from the array.
317
318 Returns:
319 The array pluck operation.
320 """
321 return array_pluck_operation(self, field)
322
323 def __mul__(self, other: NumberVar | int) -> ArrayVar[ARRAY_VAR_TYPE]:
324 """Multiply the sequence by a number or integer.

Callers 1

indexFunction · 0.80

Calls 1

array_pluck_operationFunction · 0.85

Tested by 1

indexFunction · 0.64