[commons-math] Three Concerns

2023-08-04 Thread Hasan Diwan
I'm trying to migrate an internal service for interpolation to commons-math 3.6.1, using org.apache.commons.math3.fitting.GaussianCurveFitter. My thoughts on this method: - The fit() function returns a double[], what the numbers mean is missing from the javadoc. I can write the doc, but just need

Re: [commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-04 Thread Gary Gregory
The function() method is a great technique, it's now in Functions and FailableFunction (git master). I'll see later if it can be used within Lang. I know I can use it in other projects. Wrt an API for a vararg of functions that implements chaining internally, I'm not so sure. I've though I needed

Re: [VOTE] Release Apache Commons DbUtils 1.8.0 based on RC1

2023-08-04 Thread Gary Gregory
Thanks Rob! Gary On Fri, Aug 4, 2023, 4:13 PM Rob Tompkins wrote: > All looks approriate > signatures ok > build ok on java 8, 11, 17 > reports look good. > > Send it! > > +1 > > > On Aug 1, 2023, at 8:40 PM, Gary Gregory wrote: > > > > We have fixed a few bugs and added some enhancements sinc

Re: [VOTE] Release Apache Commons DbUtils 1.8.0 based on RC1

2023-08-04 Thread Rob Tompkins
All looks approriate signatures ok build ok on java 8, 11, 17 reports look good. Send it! +1 > On Aug 1, 2023, at 8:40 PM, Gary Gregory wrote: > > We have fixed a few bugs and added some enhancements since Apache > Commons DbUtils 1.7 was released, so I would like to release Apache > Commons D

Re: [commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-04 Thread Gary Gregory
Worth adding adding function(Function)? Seems low cost to add it FailableFunction. Gary On Fri, Aug 4, 2023, 2:04 PM Rob Spoor wrote: > With just one simple utility method you can get all the chaining you want: > > public static Function function(Function func) { > return func; >

Re: [commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-04 Thread Daniel Watson
Appreciate the feedback. That's a great point. I missed the potential of the andThen(...) method. One minor thing to point out - My proposed purpose of the default value parameter was not to substitute the final value if it is null, but to substitute the final value if it cannot be obtained, due t

Re: [commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-04 Thread Rob Spoor
With just one simple utility method you can get all the chaining you want: public static Function function(Function func) { return func; } This doesn't look very useful, but it allows you to turn a method reference or lambda into a typed Function without needing a cast. After

[commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-04 Thread Daniel Watson
Asking for comments and thoughts on a potential new feature. Already developed in a commons-like style, but dont want to submit PR without discussion as it may be considered out of scope or too use case specific. Justification and details... I've run into a scenario a few times where nested lamba