Skip to content

Commit

Permalink
Update __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
TaurusOlson committed Mar 1, 2016
1 parent ebc9ed4 commit b714c38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fntools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

from .fntools import use_with, zip_with, unzip, concat, mapcat, dmap, rmap, replace,\
compose, groupby, reductions, split, assoc, dispatch, multimap,\
multistarmap, pipe, pipe_each, shift, repeatedly, duplicates, pluck, use, get_in,\
valuesof, valueof, take, drop, find, select, isiterable, are_in, any_in,\
multistarmap, pipe, pipe_each, shift, repeatedly, update, duplicates, pluck, use, get_in,\
valuesof, valueof, take, drop, find, select, remove, isiterable, are_in, any_in,\
all_in, monotony, attributes, find_each, dfilter, occurrences,\
indexof, indexesof, count, isdistinct
indexof, indexesof, count, isdistinct, nrow, ncol, names


__version__ = '1.1.0'
__version__ = '1.1.1'
__title__ = 'fntools'
__author__ = 'Taurus Olson'
__license__ = 'MIT'
1 change: 1 addition & 0 deletions fntools/fntools.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def rmap(fn, coll, isiterable=None):
return result


# TODO new can be a value or a function applied to x
def replace(x, old, new, fn=operator.eq):
"""
Replace x with new if fn(x, old) is True.
Expand Down

0 comments on commit b714c38

Please sign in to comment.