// Path: app/src/main/java/com/annimon/hotarufx/lib/Context.java
// public final class Context {
// 
//     private final Map<String, Value> variables;
//     private final Map<String, Function> functions;
//     private Composition composition;
// 
//     public Context() {
//         variables = new ConcurrentHashMap<>();
//         functions = new ConcurrentHashMap<>();
//     }
// 
//     public Map<String, Value> variables() {
//         return variables;
//     }
// 
//     public Map<String, Function> functions() {
//         return functions;
//     }
// 
//     public Composition composition() {
//         return composition;
//     }
// 
//     public void composition(Composition composition) {
//         this.composition = composition;
//     }
// }
// 
// Path: app/src/main/java/com/annimon/hotarufx/lib/Function.java
// public interface Function {
// 
//     Value execute(Value... args);
// }


import com.annimon.hotarufx.lib.Context;
import com.annimon.hotarufx.lib.Function;
package com.annimon.hotarufx.bundles;


public class FunctionInfo {

    public static FunctionInfo of(FunctionType type, Function function) {
// Path: app/src/main/java/com/annimon/hotarufx/lib/Context.java
// public final class Context {
// 
//     private final Map<String, Value> variables;
//     private final Map<String, Function> functions;
//     private Composition composition;
// 
//     public Context() {
//         variables = new ConcurrentHashMap<>();
//         functions = new ConcurrentHashMap<>();
//     }
// 
//     public Map<String, Value> variables() {
//         return variables;
//     }
// 
//     public Map<String, Function> functions() {
//         return functions;
//     }
// 
//     public Composition composition() {
//         return composition;
//     }
// 
//     public void composition(Composition composition) {
//         this.composition = composition;
//     }
// }
// 
// Path: app/src/main/java/com/annimon/hotarufx/lib/Function.java
// public interface Function {
// 
//     Value execute(Value... args);
// }


// Path: app/src/main/java/com/annimon/hotarufx/bundles/FunctionInfo.java
import com.annimon.hotarufx.lib.Context;
import com.annimon.hotarufx.lib.Function;

package com.annimon.hotarufx.bundles;


public class FunctionInfo {

    public static FunctionInfo of(FunctionType type, Function function) {
        return of(type, (Context c) -> function);