What is the best approach to destructuring strings using predicates? For instance "match a substring for which `string->number` is true."
I can approximate this using `regexp-match-positions` and stepping through possible substrings, testing until one matches, etc. But I notice that this amounts to treating a predicate as an atom. Since atoms like '\\d' and '\\w' are pretty much predicates in disguise, it made me wonder if there were a way to atom-ize an arbitrary predicate. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.