Function.is_pure()

Returns true if the function is pure, otherwise returns false.

is_pure() → bool

Example

from glider import *

def query():
    pure_functions = (
      Functions()
      .exec(100)
      .filter(lambda x: x.is_pure())
    )

    return pure_functions

Output

Last updated