@@ -63,7 +63,7 @@ const keyPathToLookupExpression = (keyPath: NonEmptyKeyPath) => {
6363 }
6464}
6565
66- const serializePartiallyAppliedFunction =
66+ const serializeOnceAppliedFunction =
6767 ( keyPath : NonEmptyKeyPath , argument : SemanticGraph ) => ( ) =>
6868 either . makeRight (
6969 makeApplyExpression ( {
@@ -108,7 +108,7 @@ export const prelude: ObjectNode = makeObjectNode({
108108 parameter : types . functionType ,
109109 return : types . something ,
110110 } ,
111- serializePartiallyAppliedFunction ( [ 'apply' ] , argument ) ,
111+ serializeOnceAppliedFunction ( [ 'apply' ] , argument ) ,
112112 option . none ,
113113 functionToApply => {
114114 if ( ! isFunctionNode ( functionToApply ) ) {
@@ -175,7 +175,7 @@ export const prelude: ObjectNode = makeObjectNode({
175175 parameter : function0 . signature . parameter ,
176176 return : function1 . signature . parameter ,
177177 } ,
178- serializePartiallyAppliedFunction (
178+ serializeOnceAppliedFunction (
179179 [ 'flow' ] ,
180180 makeObjectNode ( { 0 : function0 , 1 : function1 } ) ,
181181 ) ,
@@ -205,7 +205,7 @@ export const prelude: ObjectNode = makeObjectNode({
205205 parameter : types . integer ,
206206 return : types . integer ,
207207 } ,
208- serializePartiallyAppliedFunction ( [ 'integer' , 'add' ] , number2 ) ,
208+ serializeOnceAppliedFunction ( [ 'integer' , 'add' ] , number2 ) ,
209209 option . none ,
210210 number1 => {
211211 if (
@@ -262,10 +262,7 @@ export const prelude: ObjectNode = makeObjectNode({
262262 parameter : types . integer ,
263263 return : types . boolean ,
264264 } ,
265- serializePartiallyAppliedFunction (
266- [ 'integer' , 'less_than' ] ,
267- number2 ,
268- ) ,
265+ serializeOnceAppliedFunction ( [ 'integer' , 'less_than' ] , number2 ) ,
269266 option . none ,
270267 number1 => {
271268 if (
@@ -304,7 +301,7 @@ export const prelude: ObjectNode = makeObjectNode({
304301 parameter : types . integer ,
305302 return : types . integer ,
306303 } ,
307- serializePartiallyAppliedFunction ( [ 'integer' , 'subtract' ] , number2 ) ,
304+ serializeOnceAppliedFunction ( [ 'integer' , 'subtract' ] , number2 ) ,
308305 option . none ,
309306 number1 => {
310307 if (
@@ -384,7 +381,7 @@ export const prelude: ObjectNode = makeObjectNode({
384381 parameter : types . something ,
385382 return : types . something ,
386383 } ,
387- serializePartiallyAppliedFunction ( [ 'match' ] , cases ) ,
384+ serializeOnceAppliedFunction ( [ 'match' ] , cases ) ,
388385 option . none ,
389386 argument => {
390387 if ( ! nodeIsTagged ( argument ) ) {
@@ -432,10 +429,7 @@ export const prelude: ObjectNode = makeObjectNode({
432429 parameter : types . naturalNumber ,
433430 return : types . naturalNumber ,
434431 } ,
435- serializePartiallyAppliedFunction (
436- [ 'natural_number' , 'add' ] ,
437- number2 ,
438- ) ,
432+ serializeOnceAppliedFunction ( [ 'natural_number' , 'add' ] , number2 ) ,
439433 option . none ,
440434 number1 => {
441435 if (
@@ -509,7 +503,7 @@ export const prelude: ObjectNode = makeObjectNode({
509503 parameter : types . something ,
510504 return : types . something ,
511505 } ,
512- serializePartiallyAppliedFunction ( [ 'object' , 'lookup' ] , key ) ,
506+ serializeOnceAppliedFunction ( [ 'object' , 'lookup' ] , key ) ,
513507 option . none ,
514508 argument => {
515509 if ( ! isObjectNode ( argument ) ) {
@@ -560,7 +554,7 @@ export const prelude: ObjectNode = makeObjectNode({
560554 parameter : types . atom ,
561555 return : types . atom ,
562556 } ,
563- serializePartiallyAppliedFunction ( [ 'atom' , 'append' ] , atomToAppend ) ,
557+ serializeOnceAppliedFunction ( [ 'atom' , 'append' ] , atomToAppend ) ,
564558 option . none ,
565559 atomToAppendTo => {
566560 if (
@@ -594,10 +588,7 @@ export const prelude: ObjectNode = makeObjectNode({
594588 parameter : types . atom ,
595589 return : types . atom ,
596590 } ,
597- serializePartiallyAppliedFunction (
598- [ 'atom' , 'prepend' ] ,
599- atomToPrepend ,
600- ) ,
591+ serializeOnceAppliedFunction ( [ 'atom' , 'prepend' ] , atomToPrepend ) ,
601592 option . none ,
602593 atomToPrependTo => {
603594 if (
0 commit comments