Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby each char with index

length = sentence.length
sentence.each_char.with_index(1){|char, i|
  if i == length
    ...
  end
  
 
PREVIOUS NEXT
Tagged: #ruby #char #index
ADD COMMENT
Topic
Name
4+9 =