rename function
This commit is contained in:
parent
97b4e83379
commit
e892ade34d
8 changed files with 26 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { fnType, getListType } from "../type_registry.js";
|
||||
import { fnType, lsType } from "../type_registry.js";
|
||||
import {Type, Function} from "../metacircular.js";
|
||||
import {Int, Byte} from "../primitives/symbols.js";
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ const byteListImpl = {
|
|||
export const makeListModule = elementType => {
|
||||
// List<elementType> type depends on elementType
|
||||
// generating it another time, will give the same type (structurally equivalent):
|
||||
const ListOfElement = getListType(elementType);
|
||||
const ListOfElement = lsType(elementType);
|
||||
|
||||
const getFnType1 = fnType({in: Int , out: elementType});
|
||||
const getFnType = fnType({in: ListOfElement, out: getFnType1});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue