Skip to content

Instantly share code, notes, and snippets.

@luiscubal
luiscubal / closure_idivide.lara
Created October 8, 2015 19:01 — forked from joaobispo/closure_idivide.lara
LARA Example - idivide
// Replaces division operations in closure function with a MATISSE primitive that performs integer division
sequencedef closure_idivide
select function{"closure"} end
apply
call replace_operator("/", "N", "2", "matisse_idivide");
// Implicit update here
call replace_operator("/", "ii", "2", "matisse_idivide");
end
end