shiika-lang / shiika

A statically-typed programming language
MIT License
223 stars 15 forks source link

Remove tyarg in flat_map #504

Closed yhara closed 1 year ago

yhara commented 1 year ago

This PR removes the following explicit type argument in Enumerable#flat_map

self.map<Array<R>>(f).fold(Array<R>.new){|sum: Array<R>, item: Array<R>|
        ~~~~~~~~~~

and fixes a type error that prevent this to work.