mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
add HigherOrderLowLevel
This commit is contained in:
parent
e675bac893
commit
2b72f9e733
7 changed files with 394 additions and 324 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue