Functional Programming: what is an “improper list”?

前端 未结 9 1015
遥遥无期
遥遥无期 2020-11-27 04:38

Could somebody explain what an \"improper list\" is?

Note: Thanks to all ! All you guys rock!

9条回答
  •  爱一瞬间的悲伤
    2020-11-27 04:57

    In Erlang a proper list is one where [H|T].

    H is the head of the list and T is the rest of the list as another list.

    An improper list does not conform to this definition.

提交回复
热议问题