Last active
December 9, 2019 16:55
-
-
Save aviatesk/e8093be84b2ea5aa923d53784aa37aa2 to your computer and use it in GitHub Desktop.
methods on objects
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
const ACS = Union{AbstractChar, AbstractString} | |
(l::ACS)(f::Function, rs::ACS...) = f(l, rs...) | |
(l::ACS)(rs::ACS...) = l(*, rs...) | |
'1'("23") # "123" | |
']' .|> collect("julia") .|> '[' |> join # "[j][u][l][i][a]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment