Hullaballoonatic
05/06/2019, 7:36 AM'public' function exposes 'private' return type?diesieben07
05/06/2019, 7:37 AMdiesieben07
05/06/2019, 7:38 AMAnyHullaballoonatic
05/06/2019, 7:38 AMdiesieben07
05/06/2019, 7:38 AMHullaballoonatic
05/06/2019, 7:40 AMHullaballoonatic
05/06/2019, 7:41 AMVector because that's the type which can do all the work, and keeps things generalized.diesieben07
05/06/2019, 7:41 AMVector in this case, no?Hullaballoonatic
05/06/2019, 7:41 AMHullaballoonatic
05/06/2019, 7:42 AMdiesieben07
05/06/2019, 7:42 AMBasicVector. You are just not baking that into the method contract.Hullaballoonatic
05/06/2019, 7:42 AMdiesieben07
05/06/2019, 7:42 AMBasicVector in this caseHullaballoonatic
05/06/2019, 7:42 AMHullaballoonatic
05/06/2019, 7:43 AMdiesieben07
05/06/2019, 7:44 AMHullaballoonatic
05/06/2019, 7:44 AMVector, but i didn't want to simply extend List or something because Vectors aren't lists, and I didn't want to extend Iterable because that brings along functions i don't want for vectorsHullaballoonatic
05/06/2019, 7:45 AM