Le lundi 26 octobre 2015 12:52:04 UTC+1, DNF a écrit : > > I must admit I don't understand very well what snippet is supposed to do. > But, for example, it doesn't work for :sum or :maximum or anything like > that. > > This comes from the fact that sum and maximum don't work on empty arrays. Which are of course perfectly valid iterables. The code I gave tests all functions on base on a object with a type for which start/next/done is implemented. Collecting the values of that object just gives an empty array of type Any.
- Re: [julia-users] functions on iterable types Mauro
- Re: [julia-users] functions on iterable types harven
- Re: [julia-users] functions on iterable types Steven G. Johnson
- Re: [julia-users] functions on iterable types harven
- Re: [julia-users] functions on iterable types DNF
- Re: [julia-users] functions on iterable types DNF
- Re: [julia-users] functions on iterable typ... harven
- Re: [julia-users] functions on iterable... DNF
- Re: [julia-users] functions on ite... harven
- Re: [julia-users] functions on... Stefan Karpinski
- Re: [julia-users] functions on ite... harven
- [julia-users] Re: functions on iterable types DNF
