Re: [julia-users] Function argument inlining

2016-06-02 Thread Ford Ox
I have thought that every function in julia is Functor by default, since it is object like any other. On Thursday, June 2, 2016 at 2:53:12 PM UTC+2, Yichao Yu wrote: > > On Thu, Jun 2, 2016 at 8:37 AM, Cedric St-Jean > wrote: > > I have two very similar functions that

Re: [julia-users] Function argument inlining

2016-06-02 Thread Cedric St-Jean
Thanks. Maybe it's time to upgrade... On Thursday, June 2, 2016 at 8:53:12 AM UTC-4, Yichao Yu wrote: > > On Thu, Jun 2, 2016 at 8:37 AM, Cedric St-Jean > wrote: > > I have two very similar functions that differ in only which function > they > > call > > > > function

Re: [julia-users] Function argument inlining

2016-06-02 Thread Yichao Yu
On Thu, Jun 2, 2016 at 8:37 AM, Cedric St-Jean wrote: > I have two very similar functions that differ in only which function they > call > > function search_suspects_forward(...) > ... > searchsortedfirst(...) > end > > function search_suspects_backward(...) >

[julia-users] Function argument inlining

2016-06-02 Thread Cedric St-Jean
I have two very similar functions that differ in only which function they call function search_suspects_forward(...) ... searchsortedfirst(...) end function search_suspects_backward(...) ... searchsortedlast(...) end function foo() search_suspects_forward(...) end