v1.1.0
1.1.0 (2023-08-06)
New Functionality
Do you want to work with large arrays of separate strings? There is a way! The following code is now valid:
from stringzilla import Str, File, Strs
text: Str = Str('... very large string or file ...')
lines: Strs = text.split(separator='\n')
lines.sort()
lines.shuffle(seed=42)
sorted_copy: Strs = lines.sorted()
shuffled_copy: Strs = lines.shuffled(seed=42)
lines.append(shuffled_copy.pop(0))
lines.append('Pythonic string')
lines.extend(shuffled_copy)
Performance
You can expect even those trivial operations to be 8x faster than native Python 🤯