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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
function simplify(e::Expr) | |
_simplify(e) | |
end | |
_simplify(e) = e | |
function _simplify(e::Expr) | |
# apply the following only to expressions that call a function on arguments | |
if e.head == :call | |
op = e.args[1] # in such expressions, `args[1]` is the called function | |
simplified_args = [ _simplify(arg) for arg in e.args[2:end] ] |
OlderNewer