Functional operators in Nemerle
От: Liviu1  
Дата: 23.03.14 22:21
Оценка:
Hi all,

Are there builint operators in Nemerle like |> >> << <| from F#.
They can be built with macros but I like experience.
For example:

macro @|> (e1, e2)
  {
    <[ $e2($e1) ]>
  }


I write:

 "a" |> Console.WriteLine


What precedence value should i specify in operator attribute?

How to implement <| which is right associative?

Thanks
nemerle
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.