module Strings
Private Instance Methods
join()
click to toggle source
# File lib/totally_lazy/strings.rb, line 3 def join monoid(->(a, b) { "#{a}#{b}" }, '') end
join_with_sep(separator)
click to toggle source
# File lib/totally_lazy/strings.rb, line 7 def join_with_sep(separator) ->(a, b) { "#{a}#{separator}#{b}" } end
to_characters()
click to toggle source
# File lib/totally_lazy/strings.rb, line 11 def to_characters ->(string) { Sequence.new(character_enumerator(string)) } end
to_string()
click to toggle source
# File lib/totally_lazy/strings.rb, line 15 def to_string ->(value) { value.to_s } end