grain icon indicating copy to clipboard operation
grain copied to clipboard

Stdlib: Add `String.map` and `String.flatMap` functions

Open alex-snezhko opened this issue 2 years ago • 2 comments

Mapping the characters of a string is sometimes useful to transform a string in a similar manner to other collections.

alex-snezhko avatar Mar 02 '24 21:03 alex-snezhko

String.map was added in #1864

spotandjake avatar Jul 29 '24 02:07 spotandjake

String.map is implemented as String.map(Char -> Char, String) -> String would the expected implementation of flatMap be String.flatMap(Char -> String, String) -> String?

spotandjake avatar Aug 16 '24 18:08 spotandjake