3 ms·
Perhaps you meant something like 'within_bounds({X,Y}) when X > 0, X =< ?SIZE, Y > 0, Y =< ?SIZE -> true.' ? As written the function would return only the valu
by Luc 12y ago
Perhaps you meant something like 'within_bounds({X,Y}) when X > 0, X =< ?SIZE, Y > 0, Y =< ?SIZE -> true.' ?
As written the function would return only the value of (Y =< ?SIZE).
- mononcqc 12y agoI forgot to replace one of the commas with an 'andalso'. There's no reason to have it as a guard. It's too late to edit now, though.