# MethodError: no method matching isless(::Int64, ::Array{UnitRange{Int64},1})

**URL:** <https://discourse.julialang.org/t/methoderror-no-method-matching-isless-int64-array-unitrange-int64-1/53970>\
**Category:** Optimization (Mathematical)\
**Created:** [January 26, 2021, 11:36am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-isless-int64-array-unitrange-int64-1/53970 "2021-01-26T11:36:40Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![GraceMabele](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gracemabele/32/21360_2.png) [@GraceMabele](https://discourse.julialang.org/u/GraceMabele)\
**Post date:** [January 29, 2021, 4:45pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-isless-int64-array-unitrange-int64-1/53970/23 "2021-01-29T16:45:43Z")

</div>

Yes I did wrap them in brackets.

And it worked when I removed them. Thank you so much. You have been of great help.

[Previous page](https://discourse.julialang.org/t/methoderror-no-method-matching-isless-int64-array-unitrange-int64-1/53970.md?page=1)
