This file contains hidden or 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
import { $IterableLike, $IterableIterator, $MaybePromise } from './internal/$iterable'; | |
type $MaybeIterable<T> = T extends $IterableLike<infer T> ? $IterableLike<T> : any; | |
// prettier-ignore | |
declare function $flat<U = any>( | |
depth: 0, | |
iterable: $MaybeIterable<U>, | |
): $IterableIterator<U>; |
This file contains hidden or 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
import { iterableCurry } from './internal/iterable' | |
import { WeakExchange } from './internal/queues' | |
import consume from './consume' | |
function groupBy (getKey = (k, i) => k, iterable) { | |
let iterator | |
let idx = 0 | |
const weakExchange = new WeakExchange() | |
let consumer |
This file contains hidden or 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
let array = [1, 2, 3]; | |
let seq = new Seq(array); | |
let keyedSeq = seq.toKeyedSequence(); | |
seq.map(x => ++x); | |
Array.from(seq); // [2, 3, 4] | |
new Map(keyedSequence); // Map[0 => 2, 1 => 3, 2 => 4] |
This file contains hidden or 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
Amputate the thought that says you shouldn't ever amputate a thought. |
This file contains hidden or 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
struct star { | |
float BTmag, | |
float VTmag, | |
int Plx, | |
int Plx_err | |
} | |
void main() { | |
const char *source_holder = "H| 1| |00 00 00.22|+01 05 20.4| 9.10| |H|000.00091185|+01.08901332| | 3.54| -5.20| -1.88| 1.32| 0.74| 1.39| 1.36| 0.81| 0.32|-0.07|-0.11|-0.24| 0.09|-0.01| 0.10|-0.01| 0.01| 0.34| 0| 0.74| 1| 9.643|0.020| 9.130|0.019| | 0.482|0.025|T|0.55|0.03|L| | 9.2043|0.0020|0.017| 87| | 9.17| 9.24| | | | | | | | 1| | | | | | | | | |S| | |224700|B+00 5077 | | |0.66|F5 |S "; |
This file contains hidden or 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
Ember.Application.create({ | |
customEvents: { | |
draginit: 'dragInit', | |
/* Some events shadow regular dom events and thus don't need to be registered with Ember */ | |
// dragstart: 'dragStart', | |
// drag: 'drag', | |
// dragend: 'dragEnd', | |
dropinit: 'dropInit', | |
dropstart: 'dropStart', | |
// drop: 'drop', |
NewerOlder