Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

sub-strings

The second Ruby project from The Odin Project The function returns a hash whose key is the sub-strings of the given first argument and the number of times that the sub-string was found in the array passed as the second argument.

Parameters

get_sub_strings(String, Array)

Returns

Hash where value is Integer.

What I learned

  • The String#scan method search for the substrings and returns the list of them.
  • Conditional statement in short hand form.

About

The second Ruby project from The Odin Project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages