mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 19:03:45 +00:00
19 lines
366 B
Mathematica
19 lines
366 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module table_with_inline.
|
|
|
|
:- interface.
|
|
|
|
:- import_module int.
|
|
|
|
:- func foo(int) = int.
|
|
|
|
:- implementation.
|
|
|
|
:- pragma memo(foo/1).
|
|
:- pragma inline(foo/1).
|
|
|
|
foo(A) = A + A.
|