use flatMap(::identity) for now
# arrow
p
use flatMap(::identity) for now
👍🏾 1
f
for what?
a
flatMap(::identity) did not work for me as the types do not seem to be right. had to change it to:
listOf(...).flatMap { identity(it).k() }
☝🏼 1
p
hmmm
wait
listOf(...).flatMap(::identity)
should work because
listOf
has that function on the stdlib
don’t tell me it doesn’t return List there
dang
if it doesn’t,
identity(it)
isn’t necessary, identity just returns the same parameter passed, it’s a cached version of
{ a -> a }
a
true, using
flatten()
or
flatMap(::identity)
from stdlib works. however i tried the flatMap from arrow. this requires the form i posted above
p
yes, flatMap may be defined for ListK probably