Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Nov 27, 2023
1 parent 019348d commit dfd40bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __coconut__/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ def lift(func: _t.Callable[..., _W]) -> _t.Callable[..., _t.Callable[..., _W]]:
For a binary function f(x, y) and two unary functions g(z) and h(z), lift works as the S' combinator:
lift(f)(g, h)(z) == f(g(z), h(z))
In general, lift is requivalent to:
In general, lift is equivalent to:
def lift(f) = ((*func_args, **func_kwargs) -> (*args, **kwargs) ->
f(*(g(*args, **kwargs) for g in func_args), **{lbrace}k: h(*args, **kwargs) for k, h in func_kwargs.items(){rbrace}))
Expand Down
6 changes: 3 additions & 3 deletions coconut/compiler/templates/header.py_template
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,7 @@ class lift(_coconut_base_callable):
For a binary function f(x, y) and two unary functions g(z) and h(z), lift works as the S' combinator:
lift(f)(g, h)(z) == f(g(z), h(z))

In general, lift is requivalent to:
In general, lift is equivalent to:
def lift(f) = ((*func_args, **func_kwargs) -> (*args, **kwargs) ->
f(*(g(*args, **kwargs) for g in func_args), **{lbrace}k: h(*args, **kwargs) for k, h in func_kwargs.items(){rbrace}))

Expand All @@ -1906,10 +1906,10 @@ class lift(_coconut_base_callable):
return self
def __reduce__(self):
return (self.__class__, (self.func,))
def __call__(self, *func_args, **func_kwargs):
return _coconut_lifted(self.func, *func_args, **func_kwargs)
def __repr__(self):
return "lift(%r)" % (self.func,)
def __call__(self, *func_args, **func_kwargs):
return _coconut_lifted(self.func, *func_args, **func_kwargs)
def all_equal(iterable):
"""For a given iterable, check whether all elements in that iterable are equal to each other.

Expand Down

0 comments on commit dfd40bd

Please sign in to comment.