sveltish
  • Svelte Stores in Python

utils

  • Welcome
    • Sveltish
  • API
    • stores
    • utils

Contents

  • noop
  • identity
  • safe_not_equal
  • compose
  • NamedBunch
  • Bunch

utils

Utility functions

source

noop

 noop (*args, **kwargs)

source

identity

 identity (x)

source

safe_not_equal

 safe_not_equal (a, b)

Check if a is not equal to b


source

compose

 compose (*functions)

Compose multiple functions left to right.

Examples:

compose()(x) = x 
compose(f)(x) = f(x) 
compose(f, g)(x) = g(f(x)) 
...
Type Details
functions
Returns typing.Callable[[typing.Any], typing.Any] composed function

source

NamedBunch

 NamedBunch (name, **kw)

source

Bunch

 Bunch (**kw)
Copyright 2023, Fred Guth
  • Built with nbdev