dbrattli / Expression

Pragmatic functional programming for Python inspired by F#
https://expression.readthedocs.io
MIT License
424 stars 31 forks source link

Add default_arg #21

Closed dbrattli closed 3 years ago

dbrattli commented 3 years ago

Add default_arg similar to default_value but with the arguments swapped. Another way to handle #20

codecov[bot] commented 3 years ago

Codecov Report

Merging #21 (21da37e) into main (0d1b730) will increase coverage by 0.11%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
+ Coverage   80.42%   80.53%   +0.11%     
==========================================
  Files          38       38              
  Lines        2171     2173       +2     
==========================================
+ Hits         1746     1750       +4     
+ Misses        425      423       -2     
Impacted Files Coverage Δ
expression/core/__init__.py 100.00% <100.00%> (ø)
expression/core/option.py 88.58% <100.00%> (+1.22%) :arrow_up: