Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
2 answers
466 views

Filtering a data structure using regex predicates

Assume we have a data-structure like this: ...
graaf's user avatar
  • 23
3 votes
1 answer
443 views

Implementation of Python's re.split in Clojure (with capturing parentheses)

If you use capturing parenthesis in the regular expression pattern in Python's re.split() function, it will include the matching groups in the result (Python's ...
Thomas's user avatar
  • 131
2 votes
1 answer
271 views

Clojure code adapted from map-invert

I wanted to do the following: Count the frequencies of words in a text (over 5 letters) Invert the map of words to frequencies, but group together words that have the same frequency in the inversion. ...
noahz's user avatar
  • 318