Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Commit

Permalink
add empty? runtime function and simplified first and next
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmatrix committed Jul 15, 2012
1 parent c56978c commit c70c673
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Matter/Runtime.fs
Expand Up @@ -15,8 +15,9 @@ let rec equalFunction exp =

let runtimeFunctions = [
"list", List
"first", fun (e::_) -> e
"next", fun (_::t) -> List t
"first", List.head
"next", List.tail >> List
"empty?", List.isEmpty >> Boolean
"=", equalFunction
]

Expand Down

0 comments on commit c70c673

Please sign in to comment.