# Supporting fixed-point expressions

**URL:** <https://discourse.ats-lang.org/t/supporting-fixed-point-expressions/84>\
**Category:** Google Group\
**Created:** [September 26, 2013, 3:36pm UTC](https://discourse.ats-lang.org/t/supporting-fixed-point-expressions/84 "2013-09-26T15:36:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)\
**Post date:** [September 26, 2013, 3:36pm UTC](https://discourse.ats-lang.org/t/supporting-fixed-point-expressions/84/1 "2013-09-26T15:36:18Z")

</div>

FYI.

ATS also support the use of a fixed-point expression for defining an  
anonymous function.  
Here is an example:

val fib10 =  
(fix f(x: int): int =\> if x \>= 2 then f(x-1)+f(x-2) else x)(10)  
val () = println! ("fib(10) = ", fib10)

For more examples of this kind, please see:

> <https://github.com/githwxi/ATS-Postiats/blob/master/doc/EXAMPLE/TESTATS/fixedpoint.dats>

Cheers!
