This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Polynomial: | |
def __init__(self, coefficient, exponent, next = None): | |
self.coefficient = coefficient | |
self.exponent = exponent | |
self.next = next | |
def _add(term_a, term_b): | |
if term_a == None: | |
return term_b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by JSIL v0.8.2 build 13182. See http://jsil.org/ for more information. | |
'use strict'; | |
var $asm00 = JSIL.GetAssembly("1dd27d7b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"); | |
var $asm01 = JSIL.GetAssembly("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"); | |
var $asm02 = JSIL.GetAssembly("System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"); | |
/* Generated by JSIL v0.8.2 build 13182. See http://jsil.org/ for more information. */ | |
'use strict'; | |
var $asm00 = JSIL.DeclareAssembly("1dd27d7b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const applu = require('./index'); | |
const html = ` | |
<html> | |
<head></head> | |
<body> | |
<p id="content"></p> | |
<body> | |
</html> | |
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Component module to enforce model update view | |
*/ | |
import xs, {MemoryStream, Stream} from 'xstream'; | |
import {DOMSource, VNode} from '@cycle/dom'; | |
import {Record} from 'immutable'; | |
export interface ComponentSource { DOM: DOMSource } |
NewerOlder