eotransform.apply.Apply
- class Apply(fn: Callable[[ApplyT], ApplyU])[source]
Bases:
Transformer[ApplyT,ApplyU]Applies an arbitrary function to the input which takes the input as argument and returns a transformed output
>>> Apply(lambda x: f"The answer is: {x}")(42) 'The answer is: 42'
Methods