staircase.Stairs.pipe#

Stairs.pipe(func, *args, **kwargs)#

Applies func and returns the result.

Primarily intended to facilitate method chaining.

Parameters
funccallable

Function to apply to self.

args, optional

Positional arguments passed into func.

kwargsmapping, optional

A dictionary of keyword arguments passed into func.

Returns
object

return type of func