The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
Tuple(UInt8*, Int32)
in terms of size, so it's not even really a reference. Also one of the reasons you can't inherit from String.
hi all :)
where am i wrong? i want to get index of element that less than 16:
https://play.crystal-lang.org/#/r/2j9g
arr = [ 1, 4, 16, 25 ]
idx = arr.bsearch_index { |x| x < 16 }
p idx
prints nil