evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.04k stars 120 forks source link

fmap support for bytes #826

Closed JayXon closed 7 months ago

JayXon commented 7 months ago

fmap supports string but not bytes, would be nice to be able to do something like this:

b"Abc" |> fmap$(.|32) |> print
evhub commented 7 months ago

fmap support for bytes and bytearray added as of coconut-develop>=3.0.4-post_dev19 (pip install -U coconut-develop>=3.0.4-post_dev19).