Last active
September 30, 2018 05:05
-
-
Save supersimple/27c96afb367c49ca8a0686f5ad8216e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if Version.compare(System.version(), "1.4.0") == :lt do | |
def enum_split_with(enum, fun), do: Enum.partition(enum, fun) | |
else | |
def enum_split_with(enum, fun), do: Enum.split_with(enum, fun) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment