VimUnDo M_% s? &h'J accumulate(source, function accumulateDropWhileSource(value, result) {*PCR5_P5_Pmodule.exports = takeWhile5_ P 'function takeWhile(source, predicate) {5_P 5_ P0  *  5_ P3 T * Returns sequence of all `source`'s items after `n`-th one. If source contains5_ P     5_ P!F Returns a lazy sequence of the items in coll starting from the first5_ )P!A Returns a sequence of the items in coll starting from the first5_ P!'item for which (pred item) returns nil.5_   #v#P!) item for which (pred item) returns nil.5_   #v#P!2 item for which predicate(pred item) returns nil.5_  !  #v#P!3 item for which `predicate(pred item) returns nil.5_ !  #v#P!. item for which `predicate(item) returns nil.5_.  #v#P!/ item for which `predicate(item)` returns nil.5_   #v#P O Returns sequence of all `source`'s items after `n`-th one. If source contains5_   #v#P 1 less then `n` items empty sequence is returned.5_   #v#P 5_  #v#P5_  #v#PN Returns a sequence of successive items from `source` while `predicate(item)`5_  #v#P; returns `true`. `predicate` must be free of side-effects.5_  #v#P5_  #v#P< var digits = takeWhile([ 2, 7, 10, 23 ], function(value) {5_   #v#P< var digits = dropWhile([ 2, 7, 10, 23 ], function(value) {5_#"'v'P & print(digits) // => 5_#"'v'P ) print(digits) // => 5_vP ( print(digits) // => 5_vP0  9 return transform(source, function(next, value, state) {2 return predicate(value) ? next(value, state) :8 next(accumulated(), state) })5_vP4  5_ vP8 var transformer = require()5_! vP8  var transformer = require("")5_ "!vP>*var accumulated = require("./accumulated")5_!#"vP@5_"$# vP     5_#%$PJ M/*jshint asi: true undef: true es5: true node: true browser: true devel: true5_$&% PJ 9 forin: true latedef: false globalstrict: true */5_%'&PJ 5_&('PJ  'use strict';5_')( PJ "use strict';5_(*)P2 5_)+*P2 return reducible()5_*,+P2 return reducible(function())5_+-,P2! return reducible(function() {})5_,.-P2 return reducible(function() {5_-/.'P2 5_.0/ P2 reduce()5_/10P2 reduce(source, function())5_021P2! reduce(source, function() {})5_132(P3 + return reducible(function(next, source) {5_243P3  })5_354P3 }initial)5_465P3 reduce(source, function() {5_576P3&, reduce(source, function(result, value) {5_687P3n  5_798P3u  return predicate()5_8:9P3x  return predicate(value)5_9;:.P3 / return predicate(value) ? result : next()5_:<;5P3 < return predicate(value) ? result : next(value, result)5_;=<4P3 5 return predicate(value) ? result : next(result)5_<?=P3! 5_=@>?P3!var reducible 5_?A@P3!var reducible = require()5_@BAP3!var reducible = require("")5_ACB#P3"!5_BDCP3"var reduce = require()5_CEDP3"var reduce = require("")5_DFEP3"5_EGFP3#5_FHGP35_GIHP3/ return transformer(source, function(source) {5_HJIP3 var active = true5_IKJP3< return transform(source, function(next, value, result) {5_JLKP3= return active && (active = predicate(value)) ? result :5_KML5P3H next(value, result)5_LNMP3 })5_MONP3 })5_NPOP3, return reducible(function(next, initial) {5_OQP"P33 return reduce(source, function(result, value) {5_PRQP45_QSRP4&var transform = require("./transform")5_RTSP4*var transformer = require("./transformer")5_SUTvP5 5_TVUvP5 5_UWV%vP5% dropping = dropping || dropping5_VXWvP5 dropping = dropping && ()5_WYX3vP55 dropping = dropping && (dropping = predicate())5_XZY7vP5 5_Y[Z vP5 return 5_Z\[vP5 return dropping ? next()5_[]\+vP5+ return dropping ? next(result, value)5_\^]vP5< return predicate(value) ? result : next(result, value)5_]_^vP6- return dropping ? next(result, value) :5_^`_vP6 result5__a`-vP6- next(result, value) :5_`baP5_acb v PLvar takeWhile = reducer(function takeWhile(predicate, next, value, result) {5_bdc* v PLvar dropWhile = reducer(function takeWhile(predicate, next, value, result) {5_ced v P5_dfe v P'function dropWhile(source, predicate) {5_egf v P}5_fhgvPLvar dropWhile = reducer(function dropWhile(predicate, next, value, result) {&var reducible = require("./reducible") var reduce = require("./reduce")Lvar dropWhile = reducer(function dropWhile(predicate, next, value, result) {5_gihvP 5_hjivP return predicate()5_ikjvP return predicate(value)5_jlkvP return predicate(value) ? 5_kmlvP 5_lnmvP next5_mon vP next5_npovP next()5_oqpvP< return reducible(function reduceReducible(next, initial) {5_prqvP var dropping = true5_qsrvP@ return reduce(source, function reduceSource(result, value) {5_rtsvP: dropping = dropping && (dropping = predicate(value))5_sutvP return dropping ? result :5_tvuvP+ next(result, value)5_uwvvP }, initial)5_vxwvP })5_wyxvPvar end = require("./end")5_xzy!vP) print(numbers) // => 5_y{z"vP # print(numbers) // => < 10 23 />5_z|{vP/Lvar dropWhile = reducer(function dropWhile(predicate, next, value, result) {"var reducer = require("./reducer")Lvar dropWhile = reducer(function dropWhile(predicate, next, value, result) {5_{}|vP1 ffunction drop(source, n) {var dropWhile = reducer(function dropWhile(predicate, next, value, result) {5_|~} vP3function drop(source, n) {5_}~vP7function dropWhile(source, n) {5_~vP9!N var dropWhile = reducer(function dropWhile(predicate, next, value, result) {5_vPD! 5_ vPK% var count = n5_vPP% var dropped = n5_*vPY%; return reducible(function accumulateDrop(next, initial) {5_ - v P^"%E accumulate(source, function accumulateDropSource(value, result) {5_@- v Ps%5_- v Pu& //5_- v P}& dropped 5_- v P& if (dropped 5_- v P& if (dropped || ()5_*- v P&, if (dropped || (dropped = predicate())5_ - v P&1 if (dropped || (dropped = predicate(value))5_!- v P&2 if (dropped || (dropped = !predicate(value))5_2- v P&2 if (dropped || (dropped = !predicate(value))5_@- v P&@ if (dropped || (dropped = !predicate(value)) return result5_- v P&3 if (dropped || (dropped = !predicate(value)) return next(value, result)&1 if (count === 0) return next(value, result)5_- v P# count = count - 15_+- v P$< // Otherwise just decrement count and return `result`.5_- v P$ // Otherwise return `result`.5_- v P$#5_2- v P%$M if (dropped || (dropped = !predicate(value)) return next(value, result)5_+- v P% $5_$- v P%* // If already dropped all the items 5_3- v P%3 // If already dropped all the intended items 5_7- v P%A // If already dropped all the intended items (if dropped is5_?- v P%B // If already dropped all the intended items (if `dropped is5_C- v P%C // If already dropped all the intended items (if `dropped` is5_5- v P&5 // being set to `true` or if current predicate 5_- v PG // If count of items has reached `0` just keep on passing values.5_D- v P%E // being set to `true` or if current predicate returns `false`.5_F- v P '%F // being set to `true` or if current predicate returns `false`).5_!- v P/ !5_!- v P0 !$ return predicate(value) ? result :5_! - v P0( ! next(value, result)5_!- v P2) "#})5_3v3P|*! #J // If value is an error (which also includes end of collection) justB // pass it through `reducible` will take care of everything.4 if (isError(value)) return next(value, result)5_9v3PĀ&5_9v3PĂ5_9v3Pă'&5_9v3Pć'var end = require()5_PĈ/'var end = require("")5_PC+'&var reducible = require("./reducible")5_PC.'(var accumulate = require("./accumulate")5_.PC0'0var accumulate = require("reducible/accumulate")5_PC2',var accumulate = require("reducible/reduce")5_ PC30'(var reduec = require("reducible/reduce")5_PC7'#var isError = require("./is-error")5_PC:1'var end = require("./end")5_&PC@2'@ return reducible(function accumulateDropWhile(next, initial) {5_*PCE'J accumulate(source, function accumulateDropWhileSource(value, result) {5_)PCG3'I accumulate(source, function reducibleDropWhileSource(value, result) {5_PCK'F accumulate(source, function reduceDropWhileSource(value, result) {5_ PCM'B reduec(source, function reduceDropWhileSource(value, result) {5_ PCO'C reducue(source, function reduceDropWhileSource(value, result) {5_ PCQ5'B reduec(source, function reduceDropWhileSource(value, result) {5_Pf'F reduce(source, function accumulateDropWhileSource(value, result) {5_Pk5_Pk5_Pk5_Pk5_Pl5_Pl-5_P.!$var reduce = require("./accumulate")5_- v P5_- v P5_=?>#P3!? return active && (active = pr= edicate(value)) ? result :5_*  #v#P!0 item for which `predicate(item)` returned nil.5