add HigherOrderLowLevel

This commit is contained in:
Folkert 2021-05-16 22:45:16 +02:00
parent e675bac893
commit 2b72f9e733
7 changed files with 394 additions and 324 deletions

View file

@ -102,7 +102,9 @@ pub enum LowLevel {
}
impl LowLevel {
pub fn is_higher_order_function(&self) -> bool {
/// is one of the arguments always a function?
/// An example is List.map.
pub fn is_higher_order(&self) -> bool {
use LowLevel::*;
match self {