![I am doing this thing for school where i am supposed to make a function that takes a text file with a number on each row and a number to search for I am doing this thing for school where i am supposed to make a function that takes a text file with a number on each row and a number to search for](https://preview.redd.it/i-am-doing-this-thing-for-school-where-i-am-supposed-to-v0-481sysl45qra1.png?auto=webp&s=a321592382087345733abf81b5d36208869e185d)
I am doing this thing for school where i am supposed to make a function that takes a text file with a number on each row and a number to search for
![Searching Algorithms (in Ruby). Note: Basic Ruby language knowledge is… | by Alberto Carreras | Medium Searching Algorithms (in Ruby). Note: Basic Ruby language knowledge is… | by Alberto Carreras | Medium](https://miro.medium.com/v2/resize:fit:1400/1*iHmcYtf1Yax83o5iDWvNCw.png)
Searching Algorithms (in Ruby). Note: Basic Ruby language knowledge is… | by Alberto Carreras | Medium
![Ruby Array exercises: Check whether first and the last element are the same of a given array of integers - w3resource Ruby Array exercises: Check whether first and the last element are the same of a given array of integers - w3resource](https://www.w3resource.com/w3r_images/ruby-array-image-exercise-4.png)